mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-18 00:25:39 +01:00
11 lines
564 B
Diff
11 lines
564 B
Diff
--- a/net/minecraft/server/ContainerAnvilAbstract.java
|
|
+++ b/net/minecraft/server/ContainerAnvilAbstract.java
|
|
@@ -79,6 +79,7 @@
|
|
|
|
@Override
|
|
public boolean canUse(EntityHuman entityhuman) {
|
|
+ if (!this.checkReachable) return true; // CraftBukkit
|
|
return (Boolean) this.containerAccess.a((world, blockposition) -> {
|
|
return !this.a(world.getType(blockposition)) ? false : entityhuman.g((double) blockposition.getX() + 0.5D, (double) blockposition.getY() + 0.5D, (double) blockposition.getZ() + 0.5D) <= 64.0D;
|
|
}, true);
|