aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches/0711-Fix-checkReach-check-for-Shulker-boxes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Spigot-Server-Patches/0711-Fix-checkReach-check-for-Shulker-boxes.patch')
-rw-r--r--Spigot-Server-Patches/0711-Fix-checkReach-check-for-Shulker-boxes.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0711-Fix-checkReach-check-for-Shulker-boxes.patch b/Spigot-Server-Patches/0711-Fix-checkReach-check-for-Shulker-boxes.patch
new file mode 100644
index 0000000000..0a4779d24e
--- /dev/null
+++ b/Spigot-Server-Patches/0711-Fix-checkReach-check-for-Shulker-boxes.patch
@@ -0,0 +1,18 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Owen1212055 <[email protected]>
+Date: Sun, 4 Apr 2021 14:25:04 -0400
+Subject: [PATCH] Fix checkReach check for Shulker boxes
+
+
+diff --git a/src/main/java/net/minecraft/world/inventory/ContainerShulkerBox.java b/src/main/java/net/minecraft/world/inventory/ContainerShulkerBox.java
+index fdc47411aa3e0e27d3a20c18274fef0a0db9a5b1..6ef70e209a8e282f7c00d80678636c2b8aa49b7a 100644
+--- a/src/main/java/net/minecraft/world/inventory/ContainerShulkerBox.java
++++ b/src/main/java/net/minecraft/world/inventory/ContainerShulkerBox.java
+@@ -65,6 +65,7 @@ public class ContainerShulkerBox extends Container {
+
+ @Override
+ public boolean canUse(EntityHuman entityhuman) {
++ if (!this.checkReachable) return true; // Paper - Add reachable override for ContainerShulkerBox
+ return this.c.a(entityhuman);
+ }
+