From 77965357da3b48e879bed7df96cb3ed3a13b6de4 Mon Sep 17 00:00:00 2001 From: ivianrr Date: Wed, 2 Aug 2017 19:51:12 +0200 Subject: [PATCH] You can access the boots slot form the inventory The main inventory item slots index should start at 9, not 10. As the hotbar has slots 0-8, slot 9 was getting ignored and the last of them was one of the armor slots. --- .../java/mcjty/modtut/blocks/testcontainer/TestContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/mcjty/modtut/blocks/testcontainer/TestContainer.java b/src/main/java/mcjty/modtut/blocks/testcontainer/TestContainer.java index d1a438c..b6ea923 100644 --- a/src/main/java/mcjty/modtut/blocks/testcontainer/TestContainer.java +++ b/src/main/java/mcjty/modtut/blocks/testcontainer/TestContainer.java @@ -31,7 +31,7 @@ private void addPlayerSlots(IInventory playerInventory) { for (int col = 0; col < 9; ++col) { int x = 10 + col * 18; int y = row * 18 + 70; - this.addSlotToContainer(new Slot(playerInventory, col + row * 9 + 10, x, y)); + this.addSlotToContainer(new Slot(playerInventory, col + row * 9 + 9, x, y)); } }