actually disable default weather cycle (oops)
This commit is contained in:
@@ -153,7 +153,11 @@ public final class RealTimeWeather extends JavaPlugin implements Listener {
|
|||||||
weatherEnabled = false;
|
weatherEnabled = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (World world : getServer().getWorlds())
|
||||||
|
if (world.getEnvironment().equals(World.Environment.NORMAL))
|
||||||
|
world.setGameRule(GameRule.DO_WEATHER_CYCLE, false);
|
||||||
|
|
||||||
getServer().getScheduler().scheduleSyncRepeatingTask(this, () -> {
|
getServer().getScheduler().scheduleSyncRepeatingTask(this, () -> {
|
||||||
debug("Syncing weather...");
|
debug("Syncing weather...");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user