aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-vineflower-stripped/net/minecraft/world/inventory/ItemCombinerMenu.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-vineflower-stripped/net/minecraft/world/inventory/ItemCombinerMenu.java.patch')
-rw-r--r--patch-remap/mache-vineflower-stripped/net/minecraft/world/inventory/ItemCombinerMenu.java.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower-stripped/net/minecraft/world/inventory/ItemCombinerMenu.java.patch b/patch-remap/mache-vineflower-stripped/net/minecraft/world/inventory/ItemCombinerMenu.java.patch
new file mode 100644
index 0000000000..87031d2383
--- /dev/null
+++ b/patch-remap/mache-vineflower-stripped/net/minecraft/world/inventory/ItemCombinerMenu.java.patch
@@ -0,0 +1,20 @@
+--- a/net/minecraft/world/inventory/ItemCombinerMenu.java
++++ b/net/minecraft/world/inventory/ItemCombinerMenu.java
+@@ -114,13 +124,10 @@
+
+ @Override
+ public boolean stillValid(Player player) {
+- return this.access
+- .evaluate(
+- (level, blockPos) -> !this.isValidBlock(level.getBlockState(blockPos))
+- ? false
+- : player.distanceToSqr((double)blockPos.getX() + 0.5, (double)blockPos.getY() + 0.5, (double)blockPos.getZ() + 0.5) <= 64.0,
+- true
+- );
++ if (!this.checkReachable) return true; // CraftBukkit
++ return (Boolean) this.access.evaluate((world, blockposition) -> {
++ return !this.isValidBlock(world.getBlockState(blockposition)) ? false : player.distanceToSqr((double) blockposition.getX() + 0.5D, (double) blockposition.getY() + 0.5D, (double) blockposition.getZ() + 0.5D) <= 64.0D;
++ }, true);
+ }
+
+ @Override