Skip to content

Commit

Permalink
Scoreboard hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
May2Beez committed Mar 18, 2024
1 parent e84c11d commit b9913d7
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.jelly.farmhelperv2.mixin.gui;

import com.jelly.farmhelperv2.event.UpdateScoreboardLineEvent;
import com.jelly.farmhelperv2.util.LogUtils;
import net.minecraft.client.gui.GuiIngame;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.scoreboard.Score;
Expand Down Expand Up @@ -37,7 +36,6 @@ private void renderScoreboard(ScoreObjective objective, ScaledResolution scaledR
ScorePlayerTeam scorePlayerTeam = scoreboard.getPlayersTeam(score.getPlayerName());
String string = ScorePlayerTeam.formatPlayerName(scorePlayerTeam, score.getPlayerName());
String clean = farmHelperV2$cleanSB(string);
LogUtils.sendDebug(clean);
if (!clean.equals(farmHelperV2$cachedScoreboard.get(index)) || !farmHelperV2$cachedScoreboard.containsKey(index)) {
farmHelperV2$cachedScoreboard.put(index, clean);
MinecraftForge.EVENT_BUS.post(new UpdateScoreboardLineEvent(clean));
Expand Down

0 comments on commit b9913d7

Please sign in to comment.