aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2022-10-07 06:07:11 +1100
committerGitHub <noreply@github.com>2022-10-06 15:07:11 -0400
commit036d00a64e89ce50574c2cc85965ae10ea00e1cc (patch)
tree8eaccdb523ee6a88925548ac46952f8e1575fdc0
parentd823d2ab08cbc41fac67f06a7d38009627d4497e (diff)
downloadNotEnoughUpdates-036d00a64e89ce50574c2cc85965ae10ea00e1cc.tar.gz
NotEnoughUpdates-036d00a64e89ce50574c2cc85965ae10ea00e1cc.tar.bz2
NotEnoughUpdates-036d00a64e89ce50574c2cc85965ae10ea00e1cc.zip
Fix slot binding not working from armour slots (#343)
i love minecraft forge for minecraft version 1.8 minor version 9
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java
index 24183f9a..8a487739 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java
@@ -502,6 +502,10 @@ public class SlotLocking {
} else {
return;
}
+ if (from == 39) from = 5;
+ if (from == 38) from = 6;
+ if (from == 37) from = 7;
+ if (from == 36) from = 8;
Minecraft.getMinecraft().playerController.windowClick(
slotClickEvent.guiContainer.inventorySlots.windowId,
from, to, 2, Minecraft.getMinecraft().thePlayer