This commit is contained in:
Bysokar 2019-07-28 08:47:38 +10:00
parent d9a16a7342
commit 7c90e8da68
2 changed files with 10 additions and 9 deletions

BIN
libs/RPCore-2.0.7.jar Normal file

Binary file not shown.

View file

@ -40,19 +40,20 @@ public class TileEntityWindGenerator extends TileEntityGenerator implements IBou
{
ChargeUtils.charge(0, this);
if(ticker % 20 == 0)
{
setActive((currentMultiplier = getMultiplier()) > 0);
}
ForgeDimension dim = ((ForgeDimension)DimensionAPI.getForgeDimension(this.worldObj.provider.dimensionId));
if (dim != null && (dim.getType().equals(CelestialType.System) || dim.getType().equals(CelestialType.Cluster)) && getActive()) {
setActive(false);
} else {
if(ticker % 20 == 0)
{
setActive((currentMultiplier = getMultiplier()) > 0);
}
if(getActive())
{
setEnergy(electricityStored + (generators.windGenerationMin*currentMultiplier));
}
}
if(getActive())
{
setEnergy(electricityStored + (generators.windGenerationMin*currentMultiplier));
}
}
}