Skip to content

Commit

Permalink
Disables weather completely on The Last Millenium
Browse files Browse the repository at this point in the history
  • Loading branch information
Kogepan229 authored and glowredman committed Sep 6, 2024
1 parent 459cc13 commit e4bf115
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,25 @@ public abstract class MixinWorldProviderEndOfTime extends WorldProvider {
public boolean canDoRainSnowIce(Chunk chunk) {
return false;
}

@Override
public void calculateInitialWeather() {
this.worldObj.rainingStrength = 0.0F;
this.worldObj.thunderingStrength = 0.0F;
this.worldObj.prevRainingStrength = 0.0F;
this.worldObj.prevThunderingStrength = 0.0F;
this.worldObj.getWorldInfo().setRaining(false);
this.worldObj.getWorldInfo().setThundering(false);
}

@Override
public void updateWeather() {
if (!this.worldObj.isRemote) {
this.resetRainAndThunder();
this.worldObj.rainingStrength = 0.0F;
this.worldObj.thunderingStrength = 0.0F;
this.worldObj.prevRainingStrength = 0.0F;
this.worldObj.prevThunderingStrength = 0.0F;
}
}
}

0 comments on commit e4bf115

Please sign in to comment.