Fix crash when pointing at the sky.

This commit is contained in:
Vasco Lavos committed 2014-06-21 01:22:41 +01:00
1 parent d81db6094a
commit b4d71aa0e4
1 file changed
+3 -2
@@ -57,10 +57,11 @@ public class ItemRainbowRod extends ItemMod implements IManaUsingItem {
if(par2World.getBlock((int) x + i, (int) y, (int) z + j).isAir(par2World, (int) x + i, (int) y, (int) z + j) || par2World.getBlock((int) x + i, (int) y, (int) z + j) == place) {
par2World.setBlock((int) x + i, (int) y, (int) z + j, place);
TileBifrost tile = (TileBifrost) par2World.getTileEntity((int) x + i, (int) y, (int) z + j);
if(tile != null)
if(tile != null) {
for(int k = 0; k < 4; k++)
Botania.proxy.sparkleFX(par2World, tile.xCoord + Math.random(), tile.yCoord + Math.random(), tile.zCoord + Math.random(), (float) Math.random(), (float) Math.random(), (float) Math.random(), 0.45F + 0.2F * (float) Math.random(), 6);
tile.ticks = TIME;
tile.ticks = TIME;
}
}
lx = x;