geforkt von Mirrors/Paper
SPIGOT-4835: Manually opened chest doesn't have close animation
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
fb7dd08846
Commit
61d087fec5
@ -334,6 +334,9 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
|
|||||||
case PLAYER:
|
case PLAYER:
|
||||||
case CHEST:
|
case CHEST:
|
||||||
case ENDER_CHEST:
|
case ENDER_CHEST:
|
||||||
|
if (iinventory instanceof ITileInventory) {
|
||||||
|
getHandle().openContainer((ITileInventory) iinventory);
|
||||||
|
} else {
|
||||||
Containers customSize;
|
Containers customSize;
|
||||||
switch (inventory.getSize()) {
|
switch (inventory.getSize()) {
|
||||||
case 9:
|
case 9:
|
||||||
@ -359,6 +362,7 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
|
|||||||
throw new IllegalArgumentException("Unsupported custom inventory size " + inventory.getSize());
|
throw new IllegalArgumentException("Unsupported custom inventory size " + inventory.getSize());
|
||||||
}
|
}
|
||||||
openCustomInventory(inventory, player, customSize);
|
openCustomInventory(inventory, player, customSize);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case DISPENSER:
|
case DISPENSER:
|
||||||
if (iinventory instanceof TileEntityDispenser) {
|
if (iinventory instanceof TileEntityDispenser) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren