mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Add missing checkReachable check for shulker boxes (#5453)
This commit is contained in:
parent
63081dce92
commit
89e4cfa6de
1 changed files with 18 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
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/ContainerShulkerBox.java b/src/main/java/net/minecraft/world/inventory/ContainerShulkerBox.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/world/inventory/ContainerShulkerBox.java
|
||||
+++ b/src/main/java/net/minecraft/world/inventory/ContainerShulkerBox.java
|
||||
@@ -0,0 +0,0 @@ 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);
|
||||
}
|
||||
|
Loading…
Reference in a new issue