From b43c951d1e1119dd0a17e409019f77fd4df41a20 Mon Sep 17 00:00:00 2001 From: Rime <81419447+Emirlol@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:25:03 +0300 Subject: [PATCH] Fix TITLE related crash --- .../skyblocker/skyblock/slayers/hud/SlayerHudWidget.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/de/hysky/skyblocker/skyblock/slayers/hud/SlayerHudWidget.java b/src/main/java/de/hysky/skyblocker/skyblock/slayers/hud/SlayerHudWidget.java index 2575963ee2..b974fff13e 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/slayers/hud/SlayerHudWidget.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/slayers/hud/SlayerHudWidget.java @@ -6,7 +6,6 @@ import de.hysky.skyblocker.skyblock.tabhud.util.Ico; import de.hysky.skyblocker.skyblock.tabhud.widget.Widget; import net.minecraft.client.MinecraftClient; -import net.minecraft.text.MutableText; import net.minecraft.text.Text; import net.minecraft.util.Formatting; @@ -14,12 +13,11 @@ public class SlayerHudWidget extends Widget { public static final SlayerHudWidget INSTANCE = new SlayerHudWidget(); - private static final MutableText TITLE = Text.literal("Slayer").formatted(Formatting.DARK_PURPLE, Formatting.BOLD); private final MinecraftClient client = MinecraftClient.getInstance(); private final NumberFormat numberFormat = NumberFormat.getInstance(); public SlayerHudWidget() { - super(TITLE, Formatting.DARK_PURPLE.getColorValue()); + super(Text.literal("Slayer").formatted(Formatting.DARK_PURPLE, Formatting.BOLD), Formatting.DARK_PURPLE.getColorValue()); setX(SkyblockerConfigManager.get().slayers.slayerHud.x); setY(SkyblockerConfigManager.get().slayers.slayerHud.y); update();