diff options
author | Blood-Asp <bloodasphendrik@gmail.com> | 2015-10-12 01:23:48 +0200 |
---|---|---|
committer | Blood-Asp <bloodasphendrik@gmail.com> | 2015-10-12 01:23:48 +0200 |
commit | 6d8abce42792eba7385f0f2e4e2356735761c635 (patch) | |
tree | 901982074c8d8b3740f3323bdee559000be3817e /main/java/gregtech/api/metatileentity | |
parent | 9d85f43d5642c7683ad2877c66c6fc70b5be8928 (diff) | |
download | GT5-Unofficial-6d8abce42792eba7385f0f2e4e2356735761c635.tar.gz GT5-Unofficial-6d8abce42792eba7385f0f2e4e2356735761c635.tar.bz2 GT5-Unofficial-6d8abce42792eba7385f0f2e4e2356735761c635.zip |
first half of 5.08.31
Diffstat (limited to 'main/java/gregtech/api/metatileentity')
-rw-r--r-- | main/java/gregtech/api/metatileentity/BaseMetaTileEntity.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/java/gregtech/api/metatileentity/BaseMetaTileEntity.java b/main/java/gregtech/api/metatileentity/BaseMetaTileEntity.java index ce5b3c629e..9870ba9bec 100644 --- a/main/java/gregtech/api/metatileentity/BaseMetaTileEntity.java +++ b/main/java/gregtech/api/metatileentity/BaseMetaTileEntity.java @@ -388,8 +388,9 @@ public class BaseMetaTileEntity extends BaseTileEntity implements IGregTechTileE || (getCoverIDAtSide((byte)4) == 0 && worldObj.getPrecipitationHeight(xCoord-1, zCoord ) - 1 < yCoord) || (getCoverIDAtSide((byte)5) == 0 && worldObj.getPrecipitationHeight(xCoord+1, zCoord ) - 1 < yCoord)) { if (GregTech_API.sMachineRainExplosions && worldObj.isRaining() && getBiome().rainfall > 0) { - if (getRandomNumber(10)==0) {doEnergyExplosion(); + if (getRandomNumber(10)==0) { try{GT_Mod.instance.achievements.issueAchievement(this.getWorldObj().getPlayerEntityByName(mOwnerName), "badweather");}catch(Exception e){} + doEnergyExplosion(); }else setOnFire(); } if (!hasValidMetaTileEntity()) { @@ -397,8 +398,8 @@ public class BaseMetaTileEntity extends BaseTileEntity implements IGregTechTileE return; } if (GregTech_API.sMachineThunderExplosions && worldObj.isThundering() && getBiome().rainfall > 0 && getRandomNumber(3) == 0) { - doEnergyExplosion(); try{GT_Mod.instance.achievements.issueAchievement(this.getWorldObj().getPlayerEntityByName(mOwnerName), "badweather");}catch(Exception e){} + doEnergyExplosion(); } } } |