Fix trapped chests linking with ordinary chests, instead of trapped ones #17
@@ -90,7 +90,8 @@ public class AnySilentChest implements IAnySilentChest {
 | 
				
			|||||||
            return true;
 | 
					            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);
 | 
					        TileEntity tileEntity = world.getTileEntity(position);
 | 
				
			||||||
        if (!(tileEntity instanceof TileEntityChest)) {
 | 
					        if (!(tileEntity instanceof TileEntityChest)) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user