Fixed EM path going through lava
This commit is contained in:
parent
a52b4d39a3
commit
3022e5056d
2 changed files with 4 additions and 1 deletions
|
@ -237,7 +237,7 @@ public class TileEntityEMContractor extends TileEntityAdvanced implements IPacke
|
|||
public static boolean canBePath(World world, Vector3 position)
|
||||
{
|
||||
Block block = Block.blocksList[position.getBlockID(world)];
|
||||
return block == null || (block instanceof BlockSnow || block instanceof BlockVine || block instanceof BlockLadder || block instanceof BlockFluid || block instanceof IFluidBlock);
|
||||
return block == null || (block instanceof BlockSnow || block instanceof BlockVine || block instanceof BlockLadder || ((block instanceof BlockFluid || block instanceof IFluidBlock) && block.blockID != Block.lavaMoving.blockID && block.blockID != Block.lavaStill.blockID));
|
||||
}
|
||||
|
||||
private void moveEntity(EntityItem entityItem, ForgeDirection direction, Vector3 lockVector)
|
||||
|
@ -350,6 +350,7 @@ public class TileEntityEMContractor extends TileEntityAdvanced implements IPacke
|
|||
|
||||
entityItem.isAirBorne = true;
|
||||
entityItem.delayBeforeCanPickup = 1;
|
||||
entityItem.age = Math.max(entityItem.age - 1, 0);
|
||||
}
|
||||
|
||||
private EntityItem getItemWithPosition(ItemStack toSend)
|
||||
|
|
|
@ -121,6 +121,8 @@ public class TileEntityTickWire extends TileEntityWire implements IElectrical
|
|||
this.furnaces.put(direction, (TileEntityFurnace) tileEntity);
|
||||
}
|
||||
}
|
||||
System.out.println("TEST " + this.furnaces.size());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue