From fb08aa9689264222eeda0c0196d0554ff543ab4b Mon Sep 17 00:00:00 2001 From: DoKM Date: Sat, 14 Aug 2021 22:02:59 +0200 Subject: Fixed being able to slot lock the 9th slot also change log --- Update Notes/2.0-Pre31.md | 1 + .../io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java | 1 + 2 files changed, 2 insertions(+) diff --git a/Update Notes/2.0-Pre31.md b/Update Notes/2.0-Pre31.md index 21f89fef..02da8b18 100644 --- a/Update Notes/2.0-Pre31.md +++ b/Update Notes/2.0-Pre31.md @@ -48,6 +48,7 @@ - Fixed not being able to use keybinds while hovering over locked slots. - Fixed dungeon map appearing in boss room while holding bow (will be gone after switching from bow to another item). - Fixed dwarven mines waypoints not working if dwarven mines overlay was disabled. +- Fixed being able to slot lock the 9th slot. ### **Other** 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 cd128ebe..11351857 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java @@ -310,6 +310,7 @@ public class SlotLocking { } public void toggleLock(int lockIndex) { + if(lockIndex == 8) return; LockedSlot[] lockedSlots = getDataForProfile(); if(lockedSlots != null) { -- cgit