Save changes in AppEngInternalAEInventory too.

This commit is contained in:
Florian Scandella
2017-08-31 14:00:40 +02:00
parent d8ca9fc2f9
commit dfb23fd9e7
@@ -169,6 +169,7 @@ public class AppEngInternalAEInventory implements IInventory, Iterable<ItemStack
if( this.te != null && Platform.isServer() )
{
this.te.onChangeInventory( this, slot, InvOperation.decreaseStackSize, ns, null );
this.te.saveChanges();
}
return ns;
@@ -215,6 +216,7 @@ public class AppEngInternalAEInventory implements IInventory, Iterable<ItemStack
}
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() )
{
this.te.onChangeInventory( this, -1, InvOperation.markDirty, null, null );
this.te.saveChanges();
}
}