From a3834cc067af4ed8dbe5a93e7efe8d87f86244fa Mon Sep 17 00:00:00 2001 From: vicisacat Date: Tue, 23 Apr 2024 18:58:26 +0200 Subject: cleanup --- src/main/java/de/hysky/skyblocker/skyblock/end/TheEnd.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 b7ebbeff..f72ae34e 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/end/TheEnd.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/end/TheEnd.java @@ -86,7 +86,7 @@ public class TheEnd { ChunkPos pos = chunk.getPos(); // Box box = new Box(pos.getStartX(), 0, pos.getStartZ(), pos.getEndX() + 1, 1, pos.getEndZ() + 1); - locationsLoop: for (ProtectorLocation protectorLocation : protectorLocations) { + for (ProtectorLocation protectorLocation : protectorLocations) { if (box.contains(protectorLocation.x, 0.5, protectorLocation.z)) { MinecraftClient.getInstance().player.sendMessage(Text.literal("Checking: ").append(protectorLocation.name));//MinecraftClient.getInstance().player.sendMessage(Text.literal(pos.getStartX() + " " + pos.getStartZ() + " " + pos.getEndX() + " " + pos.getEndZ())); if (isProtectorHere(world, protectorLocation)) break; @@ -128,9 +128,9 @@ public class TheEnd { private static void checkAllProtectorLocations() { ClientWorld world = MinecraftClient.getInstance().world; if (world == null) return; - locationsLoop: for (ProtectorLocation protectorLocation : protectorLocations) { + for (ProtectorLocation protectorLocation : protectorLocations) { if (!world.isChunkLoaded(protectorLocation.x() >> 4, protectorLocation.z >> 4)) continue; - if (isProtectorHere(world, protectorLocation)) break locationsLoop; + if (isProtectorHere(world, protectorLocation)) break; } } -- cgit