always save changes when inventory changes.

should fix #3059
This commit is contained in:
Florian Scandella 2017-08-30 05:21:08 +08:00 committed by xsun2001
parent e72845ec4a
commit 881cbb63ab
1 changed files with 2 additions and 0 deletions

View File

@ -180,6 +180,7 @@ public class AppEngInternalInventory implements IInventory, Iterable<ItemStack>
if( this.getTileEntity() != null && this.eventsEnabled() )
{
this.getTileEntity().onChangeInventory( this, -1, InvOperation.markDirty, null, null );
this.getTileEntity().saveChanges();
}
}
@ -216,6 +217,7 @@ public class AppEngInternalInventory implements IInventory, Iterable<ItemStack>
if( this.getTileEntity() != null && this.eventsEnabled() )
{
this.getTileEntity().onChangeInventory( this, slotIndex, InvOperation.markDirty, null, null );
this.getTileEntity().saveChanges();
}
}