diff options
author | Owen1212055 <[email protected]> | 2021-04-23 10:25:57 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-23 16:25:57 +0200 |
commit | 7d1689f1aa8a50cd3bab1b3eefb25f0ad580d236 (patch) | |
tree | 8d6c470455845af406ea53fabc73fdfcc6fe4e91 | |
parent | ba8eb3d4b738d13616788b3d16c0ed3680e7e72d (diff) | |
download | Paper-7d1689f1aa8a50cd3bab1b3eefb25f0ad580d236.tar.gz Paper-7d1689f1aa8a50cd3bab1b3eefb25f0ad580d236.zip |
Add missing checkReachable check for shulker boxes (#5453)
-rw-r--r-- | Spigot-Server-Patches/0711-Fix-checkReach-check-for-Shulker-boxes.patch | 18 |
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); + } + |