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

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2019-05-05 18:39:58 +10:00
parent 8f5f07be27
commit e413f6ef8f
5 changed files with 19 additions and 185 deletions

View File

@@ -3,7 +3,6 @@ package org.bukkit.craftbukkit.block;
import net.minecraft.server.BlockChest;
import net.minecraft.server.Blocks;
import net.minecraft.server.ITileInventory;
import net.minecraft.server.InventoryLargeChest;
import net.minecraft.server.TileEntityChest;
import org.bukkit.Material;
import org.bukkit.block.Block;
@@ -51,7 +50,7 @@ public class CraftChest extends CraftLootable<TileEntityChest> implements Chest
ITileInventory nms = blockChest.getInventory(data, world.getHandle(), this.getPosition());
if (nms instanceof BlockChest.DoubleInventory) {
inventory = new CraftInventoryDoubleChest(((BlockChest.DoubleInventory) nms).inventorylargechest);
inventory = new CraftInventoryDoubleChest((BlockChest.DoubleInventory) nms);
}
return inventory;
}