Port norain

This commit is contained in:
ThisIsALegitUsername 2022-12-29 03:11:05 +00:00
parent 579946bad5
commit 2c8fcf816e

View File

@ -5,15 +5,16 @@ import java.util.Calendar;
import java.util.Collection; import java.util.Collection;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
import java.util.Set; import java.util.Set;
import net.lax1dude.eaglercraft.v1_8.EaglercraftUUID;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
import com.google.common.base.Predicate; import com.google.common.base.Predicate;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import com.google.common.collect.Sets; import com.google.common.collect.Sets;
import dev.resent.util.misc.W;
import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
import net.lax1dude.eaglercraft.v1_8.EaglercraftUUID;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.BlockHopper; import net.minecraft.block.BlockHopper;
import net.minecraft.block.BlockLiquid; import net.minecraft.block.BlockLiquid;
@ -1983,7 +1984,11 @@ public abstract class World implements IBlockAccess {
*/ */
protected void calculateInitialWeather() { protected void calculateInitialWeather() {
if (this.worldInfo.isRaining()) { if (this.worldInfo.isRaining()) {
if(W.noRain().isEnabled()){
this.rainingStrength = 0;
}else {
this.rainingStrength = 1.0F; this.rainingStrength = 1.0F;
}
if (this.worldInfo.isThundering()) { if (this.worldInfo.isThundering()) {
this.thunderingStrength = 1.0F; this.thunderingStrength = 1.0F;
} }