I don't know what caused that crash but it's fixed now.

This commit is contained in:
Vasco Lavos committed 2014-03-03 23:00:23 +00:00
1 parent 5715c71abe
commit 26903e89d9
1 file changed
+10 -7
@@ -43,15 +43,18 @@ public class EntitySignalFlare extends Entity {
if(ticksExisted % 10 == 0)
playSound("random.fuse", 1F, 1F);
float[] color = EntitySheep.fleeceColorTable[getColor()];
int color = getColor();
if(color < 16) {
float[] colorArray = EntitySheep.fleeceColorTable[color];
Botania.proxy.setWispFXDistanceLimit(false);
for(int i = 0; i < 3; i++)
Botania.proxy.wispFX(worldObj, posX, posY, posZ + 0.5, color[0], color[1], color[2], (float) Math.random() * 5 + 1F, (float) (Math.random() - 0.5F), 10F * (float) Math.sqrt((256F / (256F - (float) posY))), (float) (Math.random() - 0.5F));
Botania.proxy.setWispFXDistanceLimit(false);
for(int i = 0; i < 3; i++)
Botania.proxy.wispFX(worldObj, posX, posY, posZ + 0.5, colorArray[0], colorArray[1], colorArray[2], (float) Math.random() * 5 + 1F, (float) (Math.random() - 0.5F), 10F * (float) Math.sqrt((256F / (256F - (float) posY))), (float) (Math.random() - 0.5F));
for(int i = 0; i < 4; i++)
Botania.proxy.wispFX(worldObj, posX + 0.5, 256, posZ + 0.5, color[0], color[1], color[2], (float) Math.random() * 15 + 8F, (float) (Math.random() - 0.5F) * 8F, 0F, (float) (Math.random() - 0.5F) * 8F);
Botania.proxy.setWispFXDistanceLimit(true);
for(int i = 0; i < 4; i++)
Botania.proxy.wispFX(worldObj, posX + 0.5, 256, posZ + 0.5, colorArray[0], colorArray[1], colorArray[2], (float) Math.random() * 15 + 8F, (float) (Math.random() - 0.5F) * 8F, 0F, (float) (Math.random() - 0.5F) * 8F);
Botania.proxy.setWispFXDistanceLimit(true);
}
}
}