Fixed electric bolt being too random
This commit is contained in:
parent
e01565f34d
commit
9bfa1bbdda
2 changed files with 8 additions and 8 deletions
|
@ -77,12 +77,12 @@ public class FXElectricBolt extends EntityFX
|
|||
this.segments.add(new BoltSegment(this.start, this.end));
|
||||
this.recalculate();
|
||||
double offsetRatio = this.boltLength * this.complexity;
|
||||
this.split(2, offsetRatio / 2, 0.7f, 0.1f, 20);
|
||||
this.split(2, offsetRatio / 3, 0.5f, 0.1f, 25);
|
||||
this.split(2, offsetRatio / 6, 0.5f, 0.1f, 28);
|
||||
this.split(2, offsetRatio / 8, 0.5f, 0.1f, 30);
|
||||
this.split(2, offsetRatio / 12, 0, 0, 0);
|
||||
this.split(2, offsetRatio / 16, 0, 0, 0);
|
||||
this.split(2, offsetRatio / 8, 0.7f, 0.1f, 20);
|
||||
this.split(2, offsetRatio / 12, 0.5f, 0.1f, 25);
|
||||
this.split(2, offsetRatio / 24, 0.5f, 0.1f, 28);
|
||||
this.split(2, offsetRatio / 32, 0.5f, 0.1f, 30);
|
||||
this.split(2, offsetRatio / 48, 0, 0, 0);
|
||||
this.split(2, offsetRatio / 64, 0, 0, 0);
|
||||
|
||||
this.recalculate();
|
||||
|
||||
|
|
|
@ -144,6 +144,7 @@ public class TileEntityTesla extends TileEntityBase implements ITesla, IPacketRe
|
|||
else
|
||||
{
|
||||
this.transfer(ResonantInduction.POWER_PER_COAL / 20);
|
||||
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
|
||||
}
|
||||
|
||||
if (doBlockStateUpdate != furnaceTile.furnaceBurnTime > 0)
|
||||
|
@ -160,6 +161,7 @@ public class TileEntityTesla extends TileEntityBase implements ITesla, IPacketRe
|
|||
|
||||
furnaceTile.furnaceBurnTime += 2;
|
||||
this.transfer(-ResonantInduction.POWER_PER_COAL / 20);
|
||||
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
|
||||
|
||||
if (doBlockStateUpdate != furnaceTile.furnaceBurnTime > 0)
|
||||
{
|
||||
|
@ -220,8 +222,6 @@ public class TileEntityTesla extends TileEntityBase implements ITesla, IPacketRe
|
|||
{
|
||||
this.getControllingTelsa().transfer(transferEnergy);
|
||||
}
|
||||
|
||||
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
|
||||
}
|
||||
|
||||
public float getEnergyStored()
|
||||
|
|
Loading…
Reference in a new issue