mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 10:51:55 -04:00
Fix yet another silly error related to null ItemStacks.
This commit is contained in:
parent
ef64fbb3fb
commit
d09a4a3ff4
@ -12,8 +12,11 @@ trait ItemStackInventory extends Inventory {
|
||||
override def items = inventory
|
||||
|
||||
// Initialize the list automatically if we have a container.
|
||||
if (!container.isEmpty) {
|
||||
reinitialize()
|
||||
{
|
||||
val _container = container
|
||||
if (_container != null && !_container.isEmpty) {
|
||||
reinitialize()
|
||||
}
|
||||
}
|
||||
|
||||
// Load items from tag.
|
||||
|
Loading…
x
Reference in New Issue
Block a user