Fixed comparator handling

This commit is contained in:
Taylor Shuler 2014-08-02 19:28:16 +01:00
parent 3d340acdca
commit 0e3772e476
5 changed files with 17 additions and 8 deletions

2
scripts/build.bat Normal file
View File

@ -0,0 +1,2 @@
gradle setupDecompWorkspace
gradle eclipse

1
scripts/build.sh Normal file
View File

@ -0,0 +1 @@
gradle setupDecompWorkspace && gradle eclipse

2
scripts/buildw.bat Normal file
View File

@ -0,0 +1,2 @@
gradlew setupDecompWorkspace
gradlew eclipse

1
scripts/buildw.sh Normal file
View File

@ -0,0 +1 @@
bash gradlew setupDecompWorkspace && bash gradlew eclipse

View File

@ -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));
}
} }