From 1b70687960159c669e95dc0cf315e5ef3c875aad Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 28 Jan 2023 11:43:55 +1100 Subject: [PATCH] SPIGOT-7244: Unable to open Shulker Inventory when more than 8 blocks away --- .../minecraft/world/inventory/ContainerShulkerBox.patch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nms-patches/net/minecraft/world/inventory/ContainerShulkerBox.patch b/nms-patches/net/minecraft/world/inventory/ContainerShulkerBox.patch index a1a1a3474..19429ef38 100644 --- a/nms-patches/net/minecraft/world/inventory/ContainerShulkerBox.patch +++ b/nms-patches/net/minecraft/world/inventory/ContainerShulkerBox.patch @@ -38,3 +38,11 @@ iinventory.startOpen(playerinventory.player); boolean flag = true; boolean flag1 = true; +@@ -46,6 +66,7 @@ + + @Override + public boolean stillValid(EntityHuman entityhuman) { ++ if (!this.checkReachable) return true; // CraftBukkit + return this.container.stillValid(entityhuman); + } +