The Bifrost blocks no longer explode into particles when they expire, that was causing lagspikes on large structures.

This commit is contained in:
Vasco Lavos committed 2014-06-21 02:35:54 +01:00
1 parent 572b7b2d30
commit c5d2c4e52d
1 file changed
-2
@@ -25,8 +25,6 @@ public class TileBifrost extends TileMod {
if(!worldObj.isRemote) {
if(ticks <= 0) {
worldObj.setBlockToAir(xCoord, yCoord, zCoord);
for(int i = 0; i < 4; i++)
Botania.proxy.sparkleFX(worldObj, xCoord + Math.random(), yCoord + Math.random(), zCoord + Math.random(), (float) Math.random(), (float) Math.random(), (float) Math.random(), 0.45F + 0.2F * (float) Math.random(), 6);
} else ticks--;
} else if(Math.random() < 0.1)
Botania.proxy.sparkleFX(worldObj, xCoord + Math.random(), yCoord + Math.random(), zCoord + Math.random(), (float) Math.random(), (float) Math.random(), (float) Math.random(), 0.45F + 0.2F * (float) Math.random(), 6);