diff --git a/patches/server/0102-Fix-WorldBorder.isInBounds-checking-the-wrong-var.patch b/patches/server/0102-Fix-WorldBorder.isInBounds-checking-the-wrong-var.patch index 27dc5aac..3f8d043a 100644 --- a/patches/server/0102-Fix-WorldBorder.isInBounds-checking-the-wrong-var.patch +++ b/patches/server/0102-Fix-WorldBorder.isInBounds-checking-the-wrong-var.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Fix WorldBorder.isInBounds checking the wrong var diff --git a/src/main/java/net/minecraft/server/WorldBorder.java b/src/main/java/net/minecraft/server/WorldBorder.java -index 7ea40468e93e0026f5c39dc41f9c27d7c59d5fc1..a81a0dafb46f48a77df3b25144155b85ffb12df1 100644 +index 7ea40468e93e0026f5c39dc41f9c27d7c59d5fc1..3d5fb36b04121d34dad0b14811fbc9c4d6c8c909 100644 --- a/src/main/java/net/minecraft/server/WorldBorder.java +++ b/src/main/java/net/minecraft/server/WorldBorder.java @@ -45,7 +45,7 @@ public class WorldBorder { @@ -13,7 +13,7 @@ index 7ea40468e93e0026f5c39dc41f9c27d7c59d5fc1..a81a0dafb46f48a77df3b25144155b85 // Inlined the getters from ChunkCoordIntPair public boolean isInBounds(int x, int z) { - return (double) ((x << 4) + 15) > this.b() && (double) (x << 4) < this.d() && (double) ((z << 4) + 15) > this.c() && (double) (x << 4) < this.e(); -+ return (double) ((x << 4) + 15) > this.b() && (double) (x << 4) < this.d() && (double) (((z << 4) + 15)) > this.c() && (double) (z << 4) < this.e(); // PandaSpigot - Fix isInBounds(int x, int z) checking the wrong variable ++ return (double) ((x << 4) + 15) > this.b() && (double) (x << 4) < this.d() && (double) ((z << 4) + 15) > this.c() && (double) (z << 4) < this.e(); // PandaSpigot - Fix isInBounds(int x, int z) checking the wrong variable } public boolean a(AxisAlignedBB axisalignedbb) {