3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00

SPIGOT-4835: Manually opened chest doesn't have close animation

Dieser Commit ist enthalten in:
md_5 2019-05-03 17:57:05 +10:00
Ursprung 84c2f4d1ab
Commit 09a453aede

Datei anzeigen

@ -334,6 +334,9 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
case PLAYER:
case CHEST:
case ENDER_CHEST:
if (iinventory instanceof ITileInventory) {
getHandle().openContainer((ITileInventory) iinventory);
} else {
Containers customSize;
switch (inventory.getSize()) {
case 9:
@ -359,6 +362,7 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
throw new IllegalArgumentException("Unsupported custom inventory size " + inventory.getSize());
}
openCustomInventory(inventory, player, customSize);
}
break;
case DISPENSER:
if (iinventory instanceof TileEntityDispenser) {