diff --git a/src/main/java/com/lishid/openinv/internal/v1_8_R1/AnySilentChest.java b/src/main/java/com/lishid/openinv/internal/v1_8_R1/AnySilentChest.java index 46dfd81..30756a7 100644 --- a/src/main/java/com/lishid/openinv/internal/v1_8_R1/AnySilentChest.java +++ b/src/main/java/com/lishid/openinv/internal/v1_8_R1/AnySilentChest.java @@ -35,7 +35,8 @@ public class AnySilentChest implements IAnySilentChest { BlockPosition position = new BlockPosition(x, y, z); EntityPlayer player = ((CraftPlayer) p).getHandle(); World world = player.world; - BlockChest chest = (BlockChest) Block.getByName("chest"); + BlockChest chest = (BlockChest) (((BlockChest) world.getType(position).getBlock()).b == 1 ? + Block.getByName("trapped_chest") : Block.getByName("chest")); // If block on top if (topBlocking(world, position)) {