- 61
- 0
Всем привет, кто-то может мне сказать почему контейнер обновляется только после открытия/закрытия?
Java:
if (player.inventory.getStackInSlot(35) != null && player.inventory.getStackInSlot(35).getItem() instanceof ItemAmylet){
this.xDisplayPosition = 230;
} else {
this.xDisplayPosition = 10000;
}
addSlotToContainer(new Slot(player.inventory, 34, xDisplayPosition, 110));
detectAndSendChanges();
}