Fix yet another silly error related to null ItemStacks.

This commit is contained in:
Vexatos 2017-10-03 19:05:30 +02:00
parent ef64fbb3fb
commit d09a4a3ff4

View File

@ -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.