From 8f010423e71ff5017104762511ef08f67eb5a87a Mon Sep 17 00:00:00 2001 From: DoKM Date: Mon, 9 Aug 2021 22:43:33 +0200 Subject: Fixed not being able to use keybinds while hovering over locked slots Took way longer than it could have cause i couldnt find out why something was null smh --- .../moulberry/notenoughupdates/miscfeatures/SlotLocking.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java') 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 256cf03f..cd128ebe 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java @@ -79,6 +79,14 @@ public class SlotLocking { private boolean lockKeyHeld = false; private Slot pairingSlot = null; + private Slot realSlot = null; + + public void setRealSlot(Slot slot){ + realSlot = slot; + } + + public Slot getRealSlot(){ return realSlot;} + public void loadConfig(File file) { try(BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), StandardCharsets.UTF_8))) { config = GSON.fromJson(reader, SlotLockingConfig.class); -- cgit