mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
43702a9e10
By: md_5 <git@md-5.net>
10 lines
613 B
Diff
10 lines
613 B
Diff
--- a/net/minecraft/world/inventory/ContainerAnvilAbstract.java
|
|
+++ b/net/minecraft/world/inventory/ContainerAnvilAbstract.java
|
|
@@ -92,6 +92,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);
|