From f8729ef2c6cddda7a2285820f369f5b04ce89083 Mon Sep 17 00:00:00 2001 From: Magnar <40539743+maggi373@users.noreply.github.com> Date: Mon, 3 Aug 2020 19:59:27 +0200 Subject: [PATCH] reverted changes --- .../common/tile/TileEntityWindGenerator.java | 27 +++++++------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/src/main/java/mekanism/generators/common/tile/TileEntityWindGenerator.java b/src/main/java/mekanism/generators/common/tile/TileEntityWindGenerator.java index 1c91a29b4..c3e455473 100644 --- a/src/main/java/mekanism/generators/common/tile/TileEntityWindGenerator.java +++ b/src/main/java/mekanism/generators/common/tile/TileEntityWindGenerator.java @@ -1,6 +1,5 @@ package mekanism.generators.common.tile; -import buildcraft.api.core.Position; import io.netty.buffer.ByteBuf; import java.util.ArrayList; @@ -14,9 +13,6 @@ import net.minecraft.item.ItemStack; import net.minecraftforge.common.util.ForgeDirection; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import rpcore.api.DimensionAPI; -import rpcore.constants.CelestialType; -import rpcore.module.dimension.ForgeDimension; public class TileEntityWindGenerator extends TileEntityGenerator implements IBoundingBlock { @@ -40,20 +36,15 @@ public class TileEntityWindGenerator extends TileEntityGenerator implements IBou { ChargeUtils.charge(0, this); - 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(ticker % 20 == 0) + { + setActive((currentMultiplier = getMultiplier()) > 0); + } + + if(getActive()) + { + setEnergy(electricityStored + (generators.windGenerationMin*currentMultiplier)); + } } }