Merge pull request #3061 from fscan/inventory-save-changes

Always save changes when inventory changes.
This commit is contained in:
fscan
2017-08-30 00:26:02 +02:00
committed by GitHub
@@ -174,6 +174,7 @@ public class AppEngInternalInventory implements IInventory, Iterable<ItemStack>
if( this.getTileEntity() != null && this.eventsEnabled() ) if( this.getTileEntity() != null && this.eventsEnabled() )
{ {
this.getTileEntity().onChangeInventory( this, -1, InvOperation.markDirty, null, null ); this.getTileEntity().onChangeInventory( this, -1, InvOperation.markDirty, null, null );
this.getTileEntity().saveChanges();
} }
} }
@@ -200,6 +201,7 @@ public class AppEngInternalInventory implements IInventory, Iterable<ItemStack>
if( this.getTileEntity() != null && this.eventsEnabled() ) if( this.getTileEntity() != null && this.eventsEnabled() )
{ {
this.getTileEntity().onChangeInventory( this, slotIndex, InvOperation.markDirty, null, null ); this.getTileEntity().onChangeInventory( this, slotIndex, InvOperation.markDirty, null, null );
this.getTileEntity().saveChanges();
} }
} }