Skip to content

Commit

Permalink
fix ghost waypoint beacon present after deleting all waypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
rfresh2 committed Jul 19, 2023
1 parent 05b1337 commit 7153653
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public double redirectDimensionDivision(final WaypointsManager waypointsManager,
try {
RegistryKey<World> dim = MinecraftClient.getInstance().world.getRegistryKey();
if (!Objects.equals(dim, customDimensionId)) {
double currentDimDiv = Objects.equals(dim, -1) ? 8.0 : 1.0;
double currentDimDiv = Objects.equals(dim, NETHER) ? 8.0 : 1.0;
String dimPart = worldContainerID.substring(worldContainerID.lastIndexOf(47) + 1);
RegistryKey<World> dimKey = waypointsManager.getDimensionKeyForDirectoryName(dimPart);
double selectedDimDiv = dimKey == NETHER ? 8.0 : 1.0;
Expand All @@ -103,6 +103,7 @@ public void renderWaypointBeacons(final XaeroMinimapSession minimapSession, fina
final WaypointsManager waypointsManager = minimapSession.getWaypointsManager();
double dimDiv = redirectDimensionDivision(waypointsManager, waypointsManager.getCurrentContainerID());
beaconWaypoints.forEach(w -> renderWaypointBeacon(w, dimDiv, tickDelta, matrixStack));
beaconWaypoints.clear();
}

public void renderWaypointBeacon(final Waypoint waypoint, final double dimDiv, float tickDelta, MatrixStack matrixStack) {
Expand Down

0 comments on commit 7153653

Please sign in to comment.