call saveChanges when inventory changes.
This commit is contained in:
parent
c8f10d92bb
commit
90130e72aa
1 changed files with 2 additions and 0 deletions
|
@ -128,6 +128,7 @@ public class AppEngInternalInventory extends ItemStackHandler implements IIntern
|
|||
removed.grow( -added.getCount() );
|
||||
}
|
||||
this.getTileEntity().onChangeInventory( this, slot, this.currentOp, removed, added );
|
||||
this.getTileEntity().saveChanges();
|
||||
}
|
||||
super.onContentsChanged( slot );
|
||||
}
|
||||
|
@ -148,6 +149,7 @@ public class AppEngInternalInventory extends ItemStackHandler implements IIntern
|
|||
if( this.getTileEntity() != null && this.eventsEnabled() )
|
||||
{
|
||||
this.getTileEntity().onChangeInventory( this, slot, InvOperation.DIRTY, ItemStack.EMPTY, ItemStack.EMPTY );
|
||||
this.getTileEntity().saveChanges();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue