call saveChanges when inventory changes.

This commit is contained in:
Florian Scandella 2017-08-29 22:52:06 +02:00
parent c8f10d92bb
commit 90130e72aa

View file

@ -128,6 +128,7 @@ public class AppEngInternalInventory extends ItemStackHandler implements IIntern
removed.grow( -added.getCount() );
}
this.getTileEntity().onChangeInventory( this, slot, this.currentOp, removed, added );
this.getTileEntity().saveChanges();
}
super.onContentsChanged( slot );
}
@ -148,6 +149,7 @@ public class AppEngInternalInventory extends ItemStackHandler implements IIntern
if( this.getTileEntity() != null && this.eventsEnabled() )
{
this.getTileEntity().onChangeInventory( this, slot, InvOperation.DIRTY, ItemStack.EMPTY, ItemStack.EMPTY );
this.getTileEntity().saveChanges();
}
}