aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2024-07-28 21:52:34 +1000
committerGitHub <noreply@github.com>2024-07-28 13:52:34 +0200
commitca875b3cd4b0806b39cad5a9921e29bbffa0d840 (patch)
tree447228f045cad3738c3525d026aa442a6889e491
parentef5209864d560120b003960902793a0224fb9b39 (diff)
downloadnotenoughupdates-ca875b3cd4b0806b39cad5a9921e29bbffa0d840.tar.gz
notenoughupdates-ca875b3cd4b0806b39cad5a9921e29bbffa0d840.tar.bz2
notenoughupdates-ca875b3cd4b0806b39cad5a9921e29bbffa0d840.zip
Fix disable slot locking in storage not working in backpacks (#1273)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java2
1 files changed, 2 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 8f11f5c7..83e4b703 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java
@@ -173,6 +173,8 @@ public class SlotLocking {
String openChestName = Utils.getOpenChestName();
if (openChestName.trim().equals("Storage")) return null;
+ openChestName = Utils.cleanColour(openChestName);
+
Matcher matcher = WINDOW_REGEX.matcher(openChestName);
Matcher matcherEchest = ECHEST_WINDOW_REGEX.matcher(openChestName);