fix scrolling issues due to container updates from server

This commit is contained in:
Skiftcha committed 2020-11-24 17:29:26 +03:00
1 parent 48f5e6fec2
commit f728eb1a15
1 file changed
+5 -2
@@ -167,8 +167,11 @@ public class InventoryChiselSelection implements IInventory {
@Override
public void setInventorySlotContents(int slot, ItemStack stack) {
inventory[slot] = stack;
updateInventoryState(slot);
// we do not want external chisel variant updates
if (slot == normalSlots) {
inventory[slot] = stack;
updateInventoryState(slot);
}
}
@Override