You got it

This commit is contained in:
CocoTheOwner 2021-07-04 10:03:41 +02:00
parent 7d05450244
commit b67ab5ecd3
2 changed files with 8 additions and 3 deletions

View File

@ -126,6 +126,9 @@ public class IrisSettings
@DontObfuscate
public boolean openVSCode = true;
@DontObfuscate
public boolean disableTimeAndWeather = true;
}
public static IrisSettings get()

View File

@ -189,9 +189,11 @@ public class IrisProject
//@builder
World world = INMS.get().createWorld(c);
world.setGameRule(GameRule.DO_WEATHER_CYCLE, false);
world.setGameRule(GameRule.DO_DAYLIGHT_CYCLE, false);
world.setTime(6000);
if (IrisSettings.get().getStudio().isDisableTimeAndWeather()) {
world.setGameRule(GameRule.DO_WEATHER_CYCLE, false);
world.setGameRule(GameRule.DO_DAYLIGHT_CYCLE, false);
world.setTime(6000);
}
Iris.linkMultiverseCore.removeFromConfig(world);
done.set(true);