aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/inventory/ContainerAnvilAbstract.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/world/inventory/ContainerAnvilAbstract.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/inventory/ContainerAnvilAbstract.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/inventory/ContainerAnvilAbstract.patch b/patch-remap/og/net/minecraft/world/inventory/ContainerAnvilAbstract.patch
new file mode 100644
index 0000000000..e90413e53d
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/inventory/ContainerAnvilAbstract.patch
@@ -0,0 +1,10 @@
+--- a/net/minecraft/world/inventory/ContainerAnvilAbstract.java
++++ b/net/minecraft/world/inventory/ContainerAnvilAbstract.java
+@@ -124,6 +124,7 @@
+
+ @Override
+ public boolean stillValid(EntityHuman entityhuman) {
++ if (!this.checkReachable) return true; // CraftBukkit
+ return (Boolean) this.access.evaluate((world, blockposition) -> {
+ return !this.isValidBlock(world.getBlockState(blockposition)) ? false : entityhuman.distanceToSqr((double) blockposition.getX() + 0.5D, (double) blockposition.getY() + 0.5D, (double) blockposition.getZ() + 0.5D) <= 64.0D;
+ }, true);