Pollution Bloodasp3
This commit is contained in:
parent
7e720fc214
commit
fb575ddeab
1 changed files with 69 additions and 61 deletions
|
@ -1,9 +1,5 @@
|
||||||
package gregtech.common;
|
package gregtech.common;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.text.DateFormat;
|
|
||||||
import java.util.*;
|
|
||||||
|
|
||||||
import cpw.mods.fml.common.FMLCommonHandler;
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
import cpw.mods.fml.common.IFuelHandler;
|
import cpw.mods.fml.common.IFuelHandler;
|
||||||
import cpw.mods.fml.common.Loader;
|
import cpw.mods.fml.common.Loader;
|
||||||
|
@ -75,6 +71,10 @@ import net.minecraftforge.oredict.RecipeSorter;
|
||||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.text.DateFormat;
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler {
|
public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler {
|
||||||
private static final EnumSet<OreGenEvent.GenerateMinable.EventType> PREVENTED_ORES = EnumSet.of(OreGenEvent.GenerateMinable.EventType.COAL,
|
private static final EnumSet<OreGenEvent.GenerateMinable.EventType> PREVENTED_ORES = EnumSet.of(OreGenEvent.GenerateMinable.EventType.COAL,
|
||||||
new OreGenEvent.GenerateMinable.EventType[]{OreGenEvent.GenerateMinable.EventType.IRON, OreGenEvent.GenerateMinable.EventType.GOLD,
|
new OreGenEvent.GenerateMinable.EventType[]{OreGenEvent.GenerateMinable.EventType.IRON, OreGenEvent.GenerateMinable.EventType.GOLD,
|
||||||
|
@ -147,23 +147,31 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler {
|
||||||
public boolean mDisableIC2Cables = false;
|
public boolean mDisableIC2Cables = false;
|
||||||
public boolean mAchievements = true;
|
public boolean mAchievements = true;
|
||||||
public boolean mAE2Integration = true;
|
public boolean mAE2Integration = true;
|
||||||
|
//public boolean mArcSmeltIntoAnnealed = true;
|
||||||
|
//public boolean mMagneticraftRecipes = true;
|
||||||
|
private boolean isFirstServerWorldTick = true;
|
||||||
|
private boolean mOreDictActivated = false;
|
||||||
|
public boolean mChangeHarvestLevels=false;
|
||||||
|
public boolean mNerfedCombs = true;
|
||||||
|
public boolean mGTBees = true;
|
||||||
|
public boolean mHideUnusedOres = true;
|
||||||
|
public boolean mHideRecyclingRecipes = true;
|
||||||
|
public boolean mPollution = true;
|
||||||
public int mSkeletonsShootGTArrows = 16;
|
public int mSkeletonsShootGTArrows = 16;
|
||||||
public int mMaxEqualEntitiesAtOneSpot = 3;
|
public int mMaxEqualEntitiesAtOneSpot = 3;
|
||||||
public int mFlintChance = 30;
|
public int mFlintChance = 30;
|
||||||
public int mItemDespawnTime = 6000;
|
public int mItemDespawnTime = 6000;
|
||||||
public int mUpgradeCount = 4;
|
public int mUpgradeCount = 4;
|
||||||
public boolean mGTBees = true;
|
|
||||||
private World mUniverse = null;
|
|
||||||
private boolean isFirstServerWorldTick = true;
|
|
||||||
private boolean mOreDictActivated = false;
|
|
||||||
public int[] mHarvestLevel= new int[1000];
|
public int[] mHarvestLevel= new int[1000];
|
||||||
public int mGraniteHavestLevel=3;
|
public int mGraniteHavestLevel=3;
|
||||||
public int mMaxHarvestLevel=7;
|
public int mMaxHarvestLevel=7;
|
||||||
public boolean mChangeHarvestLevels=false;
|
|
||||||
public boolean mNerfedCombs = true;
|
|
||||||
public int mWireHeatingTicks = 4;
|
public int mWireHeatingTicks = 4;
|
||||||
public boolean mHideUnusedOres = true;
|
public int mPollutionSmogLimit = 500000;
|
||||||
public boolean mHideRecyclingRecipes = true;
|
public int mPollutionPoisonLimit = 750000;
|
||||||
|
public int mPollutionVegetationLimit = 1000000;
|
||||||
|
public int mPollutionSourRainLimit = 2000000;
|
||||||
|
//public double mMagneticraftBonusOutputPercent = 100.0d;
|
||||||
|
private World mUniverse = null;
|
||||||
private final String aTextThermalExpansion = "ThermalExpansion";
|
private final String aTextThermalExpansion = "ThermalExpansion";
|
||||||
private final String aTextRailcraft = "Railcraft";
|
private final String aTextRailcraft = "Railcraft";
|
||||||
private final String aTextTwilightForest = "TwilightForest";
|
private final String aTextTwilightForest = "TwilightForest";
|
||||||
|
@ -1443,6 +1451,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(aEvent.world.provider.dimensionId==0)
|
||||||
GT_Pollution.onWorldTick((int) (aEvent.world.getTotalWorldTime() % 1200));
|
GT_Pollution.onWorldTick((int) (aEvent.world.getTotalWorldTime() % 1200));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1747,8 +1756,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler {
|
||||||
}
|
}
|
||||||
if (GT_Utility.areStacksEqual(aFuel, ItemList.Block_MSSFUEL.get(1, new Object[0]))) {
|
if (GT_Utility.areStacksEqual(aFuel, ItemList.Block_MSSFUEL.get(1, new Object[0]))) {
|
||||||
rFuelValue = Math.max(rFuelValue, 150000);
|
rFuelValue = Math.max(rFuelValue, 150000);
|
||||||
}
|
}if (GT_Utility.areStacksEqual(aFuel, ItemList.Block_SSFUEL.get(1, new Object[0]))) {
|
||||||
if (GT_Utility.areStacksEqual(aFuel, ItemList.Block_SSFUEL.get(1, new Object[0]))) {
|
|
||||||
rFuelValue = Math.max(rFuelValue, 100000);
|
rFuelValue = Math.max(rFuelValue, 100000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue