2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/inventory/ContainerAnvilAbstract.java
|
|
|
|
+++ b/net/minecraft/world/inventory/ContainerAnvilAbstract.java
|
2021-06-11 07:00:00 +02:00
|
|
|
@@ -92,6 +92,7 @@
|
2020-06-25 02:00:00 +02:00
|
|
|
|
|
|
|
@Override
|
2021-11-21 23:00:00 +01:00
|
|
|
public boolean stillValid(EntityHuman entityhuman) {
|
2020-06-25 02:00:00 +02:00
|
|
|
+ if (!this.checkReachable) return true; // CraftBukkit
|
2021-11-21 23:00:00 +01:00
|
|
|
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;
|
2020-06-25 02:00:00 +02:00
|
|
|
}, true);
|