Removed explosions when raining

This commit is contained in:
Modmuss50 2015-11-11 18:33:15 +00:00
parent 351d7afadb
commit 25158d872f
2 changed files with 0 additions and 13 deletions

View file

@ -162,8 +162,6 @@ public class ConfigTechReborn {
// Client
public static boolean ShowChargeHud;
public static boolean useConnectedTextures;
public static boolean rainExplosions;
public static boolean oreUnifer;
public static Configuration config;
@ -674,9 +672,6 @@ public class ConfigTechReborn {
useConnectedTextures = config.get(CATEGORY_INTEGRATION, StatCollector.translateToLocal("config.techreborn.connectTextures"),
true, StatCollector.translateToLocal("config.techreborn.connectTextures.tooltip")).getBoolean(true);
rainExplosions = config.get(CATEGORY_POWER, StatCollector.translateToLocal("config.techreborn.rainExplosions"),
true, StatCollector.translateToLocal("config.techreborn.rainExplosions.tooltip")).getBoolean(true);
oreUnifer = config.get(CATEGORY_INTEGRATION, StatCollector.translateToLocal("config.techreborn.oreUnifer"),
true, StatCollector.translateToLocal("config.techreborn.oreUnifer.tooltip")).getBoolean(false);

View file

@ -27,14 +27,6 @@ public abstract class RFProviderTile extends TileMachineBase implements IEnergyR
if (worldObj.isRemote) {
return;
}
if (ConfigTechReborn.rainExplosions && worldObj.canBlockSeeTheSky(xCoord, yCoord + 1, zCoord) && worldObj.isRaining() || worldObj.isThundering())
if (getEnergy() >= 1 && random.nextInt(160) == 0) {
Explosion explosion = new Explosion(this.worldObj, null, xCoord, yCoord, zCoord, getEnergy() < 100000 ? 2F : 4F);
explosion.isFlaming = true;
explosion.isSmoking = getEnergy() > 100000;
explosion.doExplosionA();
explosion.doExplosionB(false);
}
sendPower();
}