diff options
author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2022-10-07 06:07:11 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 15:07:11 -0400 |
commit | 036d00a64e89ce50574c2cc85965ae10ea00e1cc (patch) | |
tree | 8eaccdb523ee6a88925548ac46952f8e1575fdc0 | |
parent | d823d2ab08cbc41fac67f06a7d38009627d4497e (diff) | |
download | NotEnoughUpdates-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.java | 4 |
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 |