From bf459f439a89fbd31682caf7a86455e7e1236d8e Mon Sep 17 00:00:00 2001 From: cons-tan-tan <132136681+cons-tan-tan@users.noreply.github.com> Date: Sat, 23 Mar 2024 23:33:02 +0900 Subject: [PATCH] fix blockedSlot number --- .../witchinggadgets/common/gui/ContainerPrimordialGlove.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/witchinggadgets/common/gui/ContainerPrimordialGlove.java b/src/main/java/witchinggadgets/common/gui/ContainerPrimordialGlove.java index 4b5d7a2c0..6ca34c9ad 100644 --- a/src/main/java/witchinggadgets/common/gui/ContainerPrimordialGlove.java +++ b/src/main/java/witchinggadgets/common/gui/ContainerPrimordialGlove.java @@ -27,7 +27,9 @@ public ContainerPrimordialGlove(InventoryPlayer iinventory, World world, int x, this.worldObj = world; this.player = iinventory.player; this.bracelet = iinventory.getCurrentItem(); - this.blockedSlot = (iinventory.currentItem + 45); + this.blockedSlot = (iinventory.currentItem + slotAmount + + iinventory.mainInventory.length + - InventoryPlayer.getHotbarSize()); this.addSlotToContainer(new SlotInfusedGem(this.input, 0, 60, 06)); this.addSlotToContainer(new SlotInfusedGem(this.input, 1, 100, 06));