From 6d577a3f4ebead029c5d57ebb3676d27471d7210 Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+Camotoy@users.noreply.github.com> Date: Sat, 15 Jan 2022 20:32:45 -0500 Subject: [PATCH] Add the Spigot change for the prior commit --- .../geyser/platform/spigot/world/GeyserPistonListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/spigot/src/main/java/org/geysermc/geyser/platform/spigot/world/GeyserPistonListener.java b/bootstrap/spigot/src/main/java/org/geysermc/geyser/platform/spigot/world/GeyserPistonListener.java index 999353d8a..981d00b97 100644 --- a/bootstrap/spigot/src/main/java/org/geysermc/geyser/platform/spigot/world/GeyserPistonListener.java +++ b/bootstrap/spigot/src/main/java/org/geysermc/geyser/platform/spigot/world/GeyserPistonListener.java @@ -97,7 +97,7 @@ public class GeyserPistonListener implements Listener { int dX = Math.abs(location.getBlockX() - player.getLocation().getBlockX()) >> 4; int dZ = Math.abs(location.getBlockZ() - player.getLocation().getBlockZ()) >> 4; - if ((dX * dX + dZ * dZ) > session.getRenderDistance() * session.getRenderDistance()) { + if ((dX * dX + dZ * dZ) > session.getServerRenderDistance() * session.getServerRenderDistance()) { // Ignore pistons outside the player's render distance continue; }