-
-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
patches/minecraft/net/minecraft/world/level/block/ShulkerBoxBlock.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- a/net/minecraft/world/level/block/ShulkerBoxBlock.java | ||
+++ b/net/minecraft/world/level/block/ShulkerBoxBlock.java | ||
@@ -238,7 +_,10 @@ | ||
} | ||
|
||
public int m_6782_(BlockState p_56223_, Level p_56224_, BlockPos p_56225_) { | ||
- return AbstractContainerMenu.m_38938_((Container)p_56224_.m_7702_(p_56225_)); | ||
+ if (p_56224_.m_7702_(p_56225_) instanceof Container) { | ||
+ return AbstractContainerMenu.m_38938_((Container)p_56224_.m_7702_(p_56225_)); | ||
+ } | ||
+ return AbstractContainerMenu.m_38918_(p_56224_.m_7702_(p_56225_)); | ||
} | ||
|
||
public ItemStack m_7397_(BlockGetter p_56202_, BlockPos p_56203_, BlockState p_56204_) { |