Fixed comparator handling
This commit is contained in:
parent
3d340acdca
commit
0e3772e476
|
|
@ -0,0 +1,2 @@
|
||||||
|
gradle setupDecompWorkspace
|
||||||
|
gradle eclipse
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
gradle setupDecompWorkspace && gradle eclipse
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
gradlew setupDecompWorkspace
|
||||||
|
gradlew eclipse
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
bash gradlew setupDecompWorkspace && bash gradlew eclipse
|
||||||
|
|
@ -296,14 +296,6 @@ public class BlockIronChest extends BlockContainer {
|
||||||
return super.getExplosionResistance(par1Entity, world, x, y, z, explosionX, explosionY, explosionZ);
|
return super.getExplosionResistance(par1Entity, world, x, y, z, explosionX, explosionY, explosionZ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getComparatorInputOverride(World par1World, int par2, int par3, int par4, int par5)
|
|
||||||
{
|
|
||||||
return Container.calcRedstoneFromInventory((TileEntityIronChest) par1World.getTileEntity(par2, par3, par4));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void registerBlockIcons(IIconRegister par1IconRegister)
|
public void registerBlockIcons(IIconRegister par1IconRegister)
|
||||||
|
|
@ -338,4 +330,15 @@ public class BlockIronChest extends BlockContainer {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean hasComparatorInputOverride()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getComparatorInputOverride(World world, int i, int j, int k, int l)
|
||||||
|
{
|
||||||
|
return Container.calcRedstoneFromInventory(chestInventory(world, i, j, k));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue