13
0
geforkt von Mirrors/Paper

SPIGOT-6478: Double chests opened by plugins don't play their closing animation.

By: blablubbabc <lukas@wirsindwir.de>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2021-05-29 08:41:34 +10:00
Ursprung 4929e2a1d9
Commit bef41983bd

Datei anzeigen

@ -29,7 +29,6 @@ import net.minecraft.world.level.block.BlockEnchantmentTable;
import net.minecraft.world.level.block.BlockWorkbench;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.entity.TileEntity;
import net.minecraft.world.level.block.entity.TileEntityContainer;
import net.minecraft.world.level.block.state.IBlockData;
import org.bukkit.GameMode;
import org.bukkit.Location;
@ -295,7 +294,7 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
}
Containers<?> container = CraftContainer.getNotchInventoryType(inventory);
if (iinventory instanceof TileEntityContainer) {
if (iinventory instanceof ITileInventory) {
getHandle().openContainer(iinventory);
} else {
openCustomInventory(inventory, player, container);