Fixed sounds not playing for turbine or reactor cell.
This commit is contained in:
parent
e00df32267
commit
700560124b
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@ import net.minecraftforge.fluids.Fluid;
|
||||||
import resonant.api.IBoilHandler;
|
import resonant.api.IBoilHandler;
|
||||||
import resonant.lib.prefab.turbine.TileTurbine;
|
import resonant.lib.prefab.turbine.TileTurbine;
|
||||||
import resonantinduction.atomic.Atomic;
|
import resonantinduction.atomic.Atomic;
|
||||||
|
import resonantinduction.core.Reference;
|
||||||
import resonantinduction.core.Settings;
|
import resonantinduction.core.Settings;
|
||||||
|
|
||||||
public class TileElectricTurbine extends TileTurbine implements IBoilHandler
|
public class TileElectricTurbine extends TileTurbine implements IBoilHandler
|
||||||
|
@ -44,7 +45,7 @@ public class TileElectricTurbine extends TileTurbine implements IBoilHandler
|
||||||
{
|
{
|
||||||
double maxVelocity = (getMaxPower() / torque) * 4;
|
double maxVelocity = (getMaxPower() / torque) * 4;
|
||||||
float percentage = angularVelocity * 4 / (float) maxVelocity;
|
float percentage = angularVelocity * 4 / (float) maxVelocity;
|
||||||
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "atomicscience:turbine", percentage, 1.0F);
|
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, Reference.PREFIX + "turbine", percentage, 1.0F);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue