Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
19 Zeilen
920 B
Diff
19 Zeilen
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 fdf04f3834a2a58073a642f4d0bfef7c8d1a6888..087da4c5774e01b05612153e4e2e2bb588404f3d 100644
|
|
--- a/src/main/java/net/minecraft/world/inventory/ShulkerBoxMenu.java
|
|
+++ b/src/main/java/net/minecraft/world/inventory/ShulkerBoxMenu.java
|
|
@@ -66,6 +66,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);
|
|
}
|
|
|