Some minor cleanup

This commit is contained in:
CovertJaguar 2013-10-05 06:18:01 -07:00
parent b6cb556274
commit de8da4c008
3 changed files with 9 additions and 9 deletions

View file

@ -213,12 +213,12 @@ public class EntityRobot extends Entity implements IEntityAdditionalSpawnData {
if (target.mode == Mode.ClearIfInvalid) {
if (!target.isValid(a.context)) {
worldObj.setBlock(target.x, target.y, target.z, 0, 0,3);
worldObj.setBlockToAir(target.x, target.y, target.z);
}
} else if (target.stackToUse != null) {
worldObj.setBlock(target.x, target.y, target.z, 0);
worldObj.setBlockToAir(target.x, target.y, target.z);
throw new RuntimeException("NOT IMPLEMENTED");
// target.stackToUse.getItem().onItemUse(target.stackToUse,
// CoreProxy.getBuildCraftPlayer(worldObj), worldObj, target.x, target.y - 1,

View file

@ -74,14 +74,14 @@ public class BlockUtil {
return canChangeBlock(world.getBlockId(x, y, z), world, x, y, z);
}
public static boolean isAnObstructingBlock(int blockID, World world, int x, int y, int z)
{
Block block = Block.blocksList[blockID];
public static boolean isAnObstructingBlock(int blockID, World world, int x, int y, int z) {
Block block = Block.blocksList[blockID];
if (blockID == 0 || block == null || block.isAirBlock(world, x, y, z))
return false;
return true;
if (blockID == 0 || block == null || block.isAirBlock(world, x, y, z))
return false;
return true;
}
public static boolean canChangeBlock(int blockID, World world, int x, int y, int z) {
Block block = Block.blocksList[blockID];

View file

@ -434,7 +434,7 @@ public class TileQuarry extends TileBuildCraft implements IMachine, IPowerRecept
}
worldObj.playAuxSFXAtEntity(null, 2001, i, j, k, blockId + (worldObj.getBlockMetadata(i, j, k) << 12));
worldObj.setBlock(i, j, k, 0);
worldObj.setBlockToAir(i, j, k);
}
// Collect any lost items laying around