diff --git a/Spigot-Server-Patches/MC-Utils.patch b/Spigot-Server-Patches/MC-Utils.patch index 45636171d5..3efc013358 100644 --- a/Spigot-Server-Patches/MC-Utils.patch +++ b/Spigot-Server-Patches/MC-Utils.patch @@ -121,9 +121,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + } + + public static boolean isEdgeOfChunk(BlockPosition pos) { -+ final int absX = Math.abs(pos.getX()) % 16; -+ final int absZ = Math.abs(pos.getZ()) % 16; -+ return (absX == 0 || absX == 15 || absZ == 0 || absZ == 15); ++ final int modX = pos.getX() & 15; ++ final int modZ = pos.getZ() & 15; ++ return (modX == 0 || modX == 15 || modZ == 0 || modZ == 15); + } +} -- \ No newline at end of file