mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-06 19:00:16 +01:00
19 lines
920 B
Diff
19 lines
920 B
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
|
||
|
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/ShulkerBoxMenu.java b/src/main/java/net/minecraft/world/inventory/ShulkerBoxMenu.java
|
||
|
index c40518b0e4ad2b043a9acc858413648d6419f3a3..4b7814a31deeef31e877cee96f0d51b348e7a281 100644
|
||
|
--- a/src/main/java/net/minecraft/world/inventory/ShulkerBoxMenu.java
|
||
|
+++ b/src/main/java/net/minecraft/world/inventory/ShulkerBoxMenu.java
|
||
|
@@ -65,6 +65,7 @@ public class ShulkerBoxMenu extends AbstractContainerMenu {
|
||
|
|
||
|
@Override
|
||
|
public boolean stillValid(Player player) {
|
||
|
+ if (!this.checkReachable) return true; // Paper - Add reachable override for ContainerShulkerBox
|
||
|
return this.container.stillValid(player);
|
||
|
}
|
||
|
|