9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-24 01:29:16 +00:00

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 @DontObfuscate
public boolean openVSCode = true; public boolean openVSCode = true;
@DontObfuscate
public boolean disableTimeAndWeather = true;
} }
public static IrisSettings get() public static IrisSettings get()

View File

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