2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/inventory/ContainerAnvilAbstract.java
|
|
|
|
+++ b/net/minecraft/world/inventory/ContainerAnvilAbstract.java
|
|
|
|
@@ -85,6 +85,7 @@
|
2020-06-25 02:00:00 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean canUse(EntityHuman entityhuman) {
|
|
|
|
+ if (!this.checkReachable) return true; // CraftBukkit
|
|
|
|
return (Boolean) this.containerAccess.a((world, blockposition) -> {
|
2020-08-11 23:00:00 +02:00
|
|
|
return !this.a(world.getType(blockposition)) ? false : entityhuman.h((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);
|