Merge pull request #3062 from fscan/inventory-save-changes-2

Save changes in AppEngInternalAEInventory too.
This commit is contained in:
fscan
2017-08-31 14:24:43 +02:00
committed by GitHub
@@ -169,6 +169,7 @@ public class AppEngInternalAEInventory implements IInventory, Iterable<ItemStack
if( this.te != null && Platform.isServer() ) if( this.te != null && Platform.isServer() )
{ {
this.te.onChangeInventory( this, slot, InvOperation.decreaseStackSize, ns, null ); this.te.onChangeInventory( this, slot, InvOperation.decreaseStackSize, ns, null );
this.te.saveChanges();
} }
return ns; return ns;
@@ -215,6 +216,7 @@ public class AppEngInternalAEInventory implements IInventory, Iterable<ItemStack
} }
this.te.onChangeInventory( this, slot, InvOperation.setInventorySlotContents, removed, added ); this.te.onChangeInventory( this, slot, InvOperation.setInventorySlotContents, removed, added );
this.te.saveChanges();
} }
} }
@@ -242,6 +244,7 @@ public class AppEngInternalAEInventory implements IInventory, Iterable<ItemStack
if( this.te != null && Platform.isServer() ) if( this.te != null && Platform.isServer() )
{ {
this.te.onChangeInventory( this, -1, InvOperation.markDirty, null, null ); this.te.onChangeInventory( this, -1, InvOperation.markDirty, null, null );
this.te.saveChanges();
} }
} }