From 2a6dbf5407b5772db3ac0d203da3cdfac13d69d5 Mon Sep 17 00:00:00 2001 From: Roman / Linnea Gräf Date: Thu, 3 Nov 2022 11:34:09 +0100 Subject: Add fully Hypixel-Rule compliant glowing mush highlighter (#266) --- src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java b/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java index e28e52d6..b8e8312d 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java @@ -271,11 +271,15 @@ public class SBInfo { } } + /** + * @return the current mode, as returned by /locraw, usually equivalent to a skyblock public island type. + */ public String getLocation() { return mode; } public void setLocation(String location) { + location = location == null ? location :location.intern(); if (!Objects.equals(this.mode, location)) { MinecraftForge.EVENT_BUS.post(new LocationChangeEvent(location, this.mode)); } -- cgit