Skip to content

Commit

Permalink
Fix TITLE related crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Emirlol committed Nov 1, 2024
1 parent 6e5566c commit b43c951
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,18 @@
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;

import java.text.NumberFormat;

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();
Expand Down

0 comments on commit b43c951

Please sign in to comment.