Fixes #208
This commit is contained in:
parent
dabe79a877
commit
8e6de190c0
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ import net.minecraft.tileentity.TileEntity;
|
|||
import net.minecraft.world.Explosion;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import techreborn.api.power.IEnergyInterfaceTile;
|
||||
import techreborn.config.ConfigTechReborn;
|
||||
import techreborn.tiles.TileMachineBase;
|
||||
|
||||
import java.util.Random;
|
||||
|
@ -27,7 +28,7 @@ public abstract class RFProviderTile extends TileMachineBase implements IEnergyR
|
|||
if (worldObj.isRemote) {
|
||||
return;
|
||||
}
|
||||
if(worldObj.canBlockSeeTheSky(xCoord, yCoord + 1, zCoord) && worldObj.isRaining() || worldObj.isThundering())
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue