From 19c4bb18b0faca802360c050d02f0abfd7ca0059 Mon Sep 17 00:00:00 2001 From: Petr Ilin Date: Tue, 12 Jul 2022 00:49:08 +0300 Subject: Ability to change the world light level --- src/main/java/net/elytrium/limboauth/LimboAuth.java | 2 +- src/main/java/net/elytrium/limboauth/Settings.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/elytrium/limboauth/LimboAuth.java b/src/main/java/net/elytrium/limboauth/LimboAuth.java index 373e96c..d0345fc 100644 --- a/src/main/java/net/elytrium/limboauth/LimboAuth.java +++ b/src/main/java/net/elytrium/limboauth/LimboAuth.java @@ -345,7 +345,7 @@ public class LimboAuth { } Settings.MAIN.WORLD_COORDS coords = Settings.IMP.MAIN.WORLD_COORDS; - file.toWorld(this.factory, authWorld, coords.X, coords.Y, coords.Z); + file.toWorld(this.factory, authWorld, coords.X, coords.Y, coords.Z, Settings.IMP.MAIN.WORLD_LIGHT_LEVEL); } catch (IOException e) { e.printStackTrace(); } diff --git a/src/main/java/net/elytrium/limboauth/Settings.java b/src/main/java/net/elytrium/limboauth/Settings.java index 23b7215..7a1a29c 100644 --- a/src/main/java/net/elytrium/limboauth/Settings.java +++ b/src/main/java/net/elytrium/limboauth/Settings.java @@ -130,6 +130,9 @@ public class Settings extends YamlConfig { @Comment("World time in ticks (24000 ticks == 1 in-game day)") public long WORLD_TICKS = 1000L; + @Comment("World light level (from 0 to 15)") + public int WORLD_LIGHT_LEVEL = 15; + @Comment("Available: ADVENTURE, CREATIVE, SURVIVAL, SPECTATOR") public String GAME_MODE = "ADVENTURE"; -- cgit