aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java
diff options
context:
space:
mode:
authorRoman / Linnea Gräf <roman.graef@gmail.com>2022-11-03 11:34:09 +0100
committerGitHub <noreply@github.com>2022-11-03 11:34:09 +0100
commit2a6dbf5407b5772db3ac0d203da3cdfac13d69d5 (patch)
treeac8cf5047e200423c8cdbb3aee57787e1d5f6f50 /src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java
parent5f0291595204c06be9c6462dce6b166b03c19f68 (diff)
downloadnotenoughupdates-2a6dbf5407b5772db3ac0d203da3cdfac13d69d5.tar.gz
notenoughupdates-2a6dbf5407b5772db3ac0d203da3cdfac13d69d5.tar.bz2
notenoughupdates-2a6dbf5407b5772db3ac0d203da3cdfac13d69d5.zip
Add fully Hypixel-Rule compliant glowing mush highlighter (#266)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java4
1 files changed, 4 insertions, 0 deletions
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));
}