diff options
author | Aaron <51387595+AzureAaron@users.noreply.github.com> | 2024-06-13 21:46:56 -0400 |
---|---|---|
committer | Aaron <51387595+AzureAaron@users.noreply.github.com> | 2024-06-18 16:34:37 -0400 |
commit | 3a53e51494523871870491617ae6add9b3fe87fe (patch) | |
tree | 2ad7c2e1718b3441f33d09e1be19c4051b0a1b44 /src/main/java/de/hysky/skyblocker/skyblock/end/TheEnd.java | |
parent | 265c09b16b78b93a55745ce8dd008d405e735d6b (diff) | |
download | Skyblocker-3a53e51494523871870491617ae6add9b3fe87fe.tar.gz Skyblocker-3a53e51494523871870491617ae6add9b3fe87fe.tar.bz2 Skyblocker-3a53e51494523871870491617ae6add9b3fe87fe.zip |
1.21
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/end/TheEnd.java')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/skyblock/end/TheEnd.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/end/TheEnd.java b/src/main/java/de/hysky/skyblocker/skyblock/end/TheEnd.java index ac961dd8..872d2823 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/end/TheEnd.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/end/TheEnd.java @@ -5,6 +5,7 @@ import com.google.gson.JsonObject; import de.hysky.skyblocker.SkyblockerMod; import de.hysky.skyblocker.config.SkyblockerConfigManager; import de.hysky.skyblocker.events.HudRenderEvents; +import de.hysky.skyblocker.utils.ColorUtils; import de.hysky.skyblocker.utils.Utils; import de.hysky.skyblocker.utils.waypoint.Waypoint; import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientChunkEvents; @@ -73,7 +74,7 @@ public class TheEnd { }); - HudRenderEvents.AFTER_MAIN_HUD.register((drawContext, tickDelta) -> { + HudRenderEvents.AFTER_MAIN_HUD.register((drawContext, tickCounter) -> { if (!Utils.isInTheEnd()) return; if (!SkyblockerConfigManager.get().otherLocations.end.hudEnabled) return; @@ -268,7 +269,7 @@ public class TheEnd { public record ProtectorLocation(int x, int z, Text name, Waypoint waypoint) { public ProtectorLocation(int x, int z, Text name) { - this(x, z, name, new Waypoint(new BlockPos(x, 0, z), Waypoint.Type.WAYPOINT, DyeColor.MAGENTA.getColorComponents())); + this(x, z, name, new Waypoint(new BlockPos(x, 0, z), Waypoint.Type.WAYPOINT, ColorUtils.getFloatComponents(DyeColor.MAGENTA))); } } } |