Save changes in AppEngInternalAEInventory too.

This commit is contained in:
Florian Scandella 2017-08-31 20:00:40 +08:00 committed by xsun2001
parent 881cbb63ab
commit 83e1e8beed
1 changed files with 3 additions and 0 deletions

View File

@ -167,6 +167,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;
@ -213,6 +214,7 @@ public class AppEngInternalAEInventory implements IInventory, Iterable<ItemStack
}
this.te.onChangeInventory( this, slot, InvOperation.setInventorySlotContents, removed, added );
this.te.saveChanges();
}
}
@ -240,6 +242,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();
}
}