diff options
| author | Cobble8 <41165207+Cobble8@users.noreply.github.com> | 2022-04-27 14:56:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-27 20:56:23 +0200 |
| commit | 79bc28639e966415a97b1f21dd11617c6a4e0215 (patch) | |
| tree | b0bd24f4298a7b2e83f47cafe43cef441878443f /src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java | |
| parent | 68b565d762c549bf5c1fe6bb2b57b14c37618a1e (diff) | |
| download | notenoughupdates-79bc28639e966415a97b1f21dd11617c6a4e0215.tar.gz notenoughupdates-79bc28639e966415a97b1f21dd11617c6a4e0215.tar.bz2 notenoughupdates-79bc28639e966415a97b1f21dd11617c6a4e0215.zip | |
HEAVY PEARL TODO TIMER THING (#120)
* HEAVY PEARL TODO TIMER THING
yay hopefully this works idk don't wanna wait 21 hours to test it again but Im pretty confident it works
* fix bad change thing hopefully idk
maybe
* fix formatting + 2.1.md 🙂
* fix formatting
* fixed heavy pearls overriding gemstone powder
Co-authored-by: NopoTheGamer <noahogno@gmail.com>
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.java | 5 |
1 files changed, 4 insertions, 1 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 f1e40671..6519d547 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java @@ -3,6 +3,7 @@ package io.github.moulberry.notenoughupdates.util; import com.google.common.reflect.TypeToken; import com.google.gson.JsonObject; import io.github.moulberry.notenoughupdates.NotEnoughUpdates; +import io.github.moulberry.notenoughupdates.listener.ScoreboardLocationChangeListener; import io.github.moulberry.notenoughupdates.miscfeatures.customblockzones.LocationChangeEvent; import io.github.moulberry.notenoughupdates.overlays.SlayerOverlay; import net.minecraft.client.Minecraft; @@ -367,7 +368,9 @@ public class SBInfo { //Replaced with for loop because in crystal hollows with events the line it's on can shift. for (String line : lines) { if (line.contains("⏣")) { - location = Utils.cleanColour(line).replaceAll("[^A-Za-z0-9() ]", "").trim(); + String l = Utils.cleanColour(line).replaceAll("[^A-Za-z0-9() ]", "").trim(); + if(!l.equals(location)) { new ScoreboardLocationChangeListener(location, l); } + location = l; break; } } |
