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:
Ursprung
4929e2a1d9
Commit
bef41983bd
@ -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);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren