diff options
| author | viciscat <51047087+viciscat@users.noreply.github.com> | 2025-06-24 07:45:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-24 01:45:51 -0400 |
| commit | d7fc100691152fb56ac09757603e62a3855fb372 (patch) | |
| tree | 085c802098a884cb83993ee9643fa55bdd78862b /src/main/java/de | |
| parent | f5e129aa7b86063a08b742dc70cb37b353653461 (diff) | |
| download | Skyblocker-d7fc100691152fb56ac09757603e62a3855fb372.tar.gz Skyblocker-d7fc100691152fb56ac09757603e62a3855fb372.tar.bz2 Skyblocker-d7fc100691152fb56ac09757603e62a3855fb372.zip | |
ignore seen waypoints outside loaded chunks (#1392)
Diffstat (limited to 'src/main/java/de')
| -rw-r--r-- | src/main/java/de/hysky/skyblocker/utils/waypoint/SeenWaypoint.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/hysky/skyblocker/utils/waypoint/SeenWaypoint.java b/src/main/java/de/hysky/skyblocker/utils/waypoint/SeenWaypoint.java index 8f45c968..fda14758 100644 --- a/src/main/java/de/hysky/skyblocker/utils/waypoint/SeenWaypoint.java +++ b/src/main/java/de/hysky/skyblocker/utils/waypoint/SeenWaypoint.java @@ -43,7 +43,7 @@ public class SeenWaypoint extends Waypoint implements Tickable { @Override public void tick(MinecraftClient client) { - if (!seen && shouldRender() && client.world != null && client.player != null && FrustumUtils.isVisible(pos.getX(), pos.getY(), pos.getZ(), pos.getX() + 1, pos.getY() + 1, pos.getZ() + 1)) { + if (!seen && shouldRender() && client.world != null && client.player != null && FrustumUtils.isVisible(pos.getX(), pos.getY(), pos.getZ(), pos.getX() + 1, pos.getY() + 1, pos.getZ() + 1) && client.world.getChunkAsView(pos.getX() >> 4, pos.getZ() >> 4) != null) { BlockHitResult blockHitResult = client.world.raycast(new RaycastContext(client.player.getEyePos(), Vec3d.ofCenter(pos), RaycastContext.ShapeType.COLLIDER, RaycastContext.FluidHandling.NONE, client.player)); if (blockHitResult.getType() == HitResult.Type.MISS || blockHitResult.getBlockPos().equals(pos)) { seen = true; |
