mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-02 13:12:03 -07:00
Fix double chest identification (#11812)
This commit is contained in:
@@ -919,7 +919,7 @@
|
||||
+ ((Container) menu).stopOpen(this);
|
||||
+ } else if (menu instanceof net.minecraft.world.level.block.ChestBlock.DoubleInventory doubleInventory) {
|
||||
+ // SPIGOT-5355 - double chests too :(
|
||||
+ doubleInventory.inventorylargechest.stopOpen(this);
|
||||
+ doubleInventory.container.stopOpen(this);
|
||||
+ // Paper start - Fix InventoryOpenEvent cancellation
|
||||
+ } else if (!this.enderChestInventory.isActiveChest(null)) {
|
||||
+ this.enderChestInventory.stopOpen(this);
|
||||
|
Reference in New Issue
Block a user