diff --git a/src/main/java/meteordevelopment/meteorclient/systems/modules/render/WaypointsModule.java b/src/main/java/meteordevelopment/meteorclient/systems/modules/render/WaypointsModule.java index e30a1235b23..cbe00df1e69 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/modules/render/WaypointsModule.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/modules/render/WaypointsModule.java @@ -265,7 +265,7 @@ private void initTable(GuiTheme theme, WTable table) { String command = String.format( "/execute in %s run tp %d %d %d", - waypoint.dimension.toString(), + waypoint.dimension.get().toIdentifier(), pos.getX(), pos.getY(), pos.getZ() diff --git a/src/main/java/meteordevelopment/meteorclient/utils/world/Dimension.java b/src/main/java/meteordevelopment/meteorclient/utils/world/Dimension.java index ac61f346e3e..69f70a5d3c1 100644 --- a/src/main/java/meteordevelopment/meteorclient/utils/world/Dimension.java +++ b/src/main/java/meteordevelopment/meteorclient/utils/world/Dimension.java @@ -18,7 +18,7 @@ public Dimension opposite() { }; } - public String toString() { + public String toIdentifier() { return switch (this) { case Nether -> "minecraft:the_nether"; case End -> "minecraft:the_end";