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 new file mode 100644 index 00000000..27dc5aac --- /dev/null +++ b/patches/server/0102-Fix-WorldBorder.isInBounds-checking-the-wrong-var.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: uRyanxD +Date: Fri, 25 Oct 2024 18:08:23 -0300 +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 +--- 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 { + + // 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 + } + + public boolean a(AxisAlignedBB axisalignedbb) {