|
24 | 24 | import net.fabricmc.fabric.api.client.message.v1.ClientReceiveMessageEvents; |
25 | 25 | import net.minecraft.text.Text; |
26 | 26 | import org.intellij.lang.annotations.Language; |
27 | | -import wtf.cheeze.sbt.SkyblockTweaks; |
28 | 27 | import wtf.cheeze.sbt.config.ConfigImpl; |
29 | 28 | import wtf.cheeze.sbt.config.SBTConfig; |
30 | 29 | import wtf.cheeze.sbt.events.ChatEvents; |
@@ -197,7 +196,6 @@ public static ActionBarData extractData(String actionBarText) { |
197 | 196 | data.maxDrillFuel = NumberUtils.parseIntWithKorM(drillFuel[1]); |
198 | 197 | } else if (unformatted.contains("ф Left")) { |
199 | 198 | // Rift Timer |
200 | | - SkyblockTweaks.LOGGER.info("Rift Timer: {}", unformatted); |
201 | 199 | Matcher matcher = riftTimePattern.matcher(unformatted); |
202 | 200 | if (matcher.matches()) { |
203 | 201 | data.riftTime = matcher.group("time"); |
@@ -282,7 +280,7 @@ public static Text runTransformations(Text actionBarText) { |
282 | 280 | tickers = segment.split("Mana")[1]; |
283 | 281 | } |
284 | 282 | newText.append(SEPERATOR5).append(tickers); |
285 | | - } else if (!hideMana && hideTickers && hasTickers) { |
| 283 | + } else if (!hideMana) { // hideTickers and hasTickers are always true here (because of the if-statement above) |
286 | 284 | // TM-HT |
287 | 285 | String spliter = ""; |
288 | 286 | if (trimmed.contains(Symbols.OVERFLOW_MANA)) { |
@@ -357,10 +355,7 @@ public static Text runTransformations(Text actionBarText) { |
357 | 355 | } |
358 | 356 |
|
359 | 357 | public static void registerEvents() { |
360 | | - ChatEvents.ON_ACTION_BAR.register(message -> { |
361 | | - // SkyblockTweaks.LOGGER.info(message.getString()); |
362 | | - SkyblockData.update(ActionBarTransformer.extractData(message.getString())); |
363 | | - }); |
| 358 | + ChatEvents.ON_ACTION_BAR.register(message -> SkyblockData.update(ActionBarTransformer.extractData(message.getString()))); |
364 | 359 | ClientReceiveMessageEvents.MODIFY_GAME.register((message, overlay) -> { |
365 | 360 | if (!overlay) return message; |
366 | 361 | return ActionBarTransformer.runTransformations(message); |
@@ -542,5 +537,3 @@ public static OptionGroup getGroup(ConfigImpl defaults, ConfigImpl config) { |
542 | 537 |
|
543 | 538 |
|
544 | 539 | } |
545 | | - |
546 | | - |
0 commit comments