Save changes in AppEngInternalAEInventory too.
This commit is contained in:
parent
881cbb63ab
commit
83e1e8beed
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue