Fix trapped chests linking with ordinary chests, instead of trapped ones #17

Merged
Hummer12007 merged 2 commits from master into master 2015-01-13 21:46:56 -05:00
Showing only changes of commit d0494aa2e7 - Show all commits

View File

@@ -90,7 +90,8 @@ public class AnySilentChest implements IAnySilentChest {
return true;
}
BlockChest chest = (BlockChest) Block.getByName("chest");
BlockChest chest = (BlockChest) (((BlockChest) world.getType(position).getBlock()).b == 1 ?
Block.getByName("trapped_chest") : Block.getByName("chest"));
TileEntity tileEntity = world.getTileEntity(position);
if (!(tileEntity instanceof TileEntityChest)) {