mirror of
https://github.com/TotalFreedomMC/OpenInv.git
synced 2024-12-23 00:15:08 +00:00
Fix trapped chests linking with ordinary chests, instead of trapped ones.
This commit is contained in:
parent
6adcd491db
commit
d0494aa2e7
1 changed files with 2 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue