From c2ff8a467f8a8cb6c8daf290082f28ea4b4991f5 Mon Sep 17 00:00:00 2001 From: Ben Woo <30431861+benwoo1110@users.noreply.github.com> Date: Mon, 11 Sep 2023 16:38:49 +0800 Subject: [PATCH] Make unsettable properties have null name --- .../MultiverseCore/worldnew/config/WorldConfigNodes.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/onarandombox/MultiverseCore/worldnew/config/WorldConfigNodes.java b/src/main/java/com/onarandombox/MultiverseCore/worldnew/config/WorldConfigNodes.java index d3df3253..a3462a03 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/worldnew/config/WorldConfigNodes.java +++ b/src/main/java/com/onarandombox/MultiverseCore/worldnew/config/WorldConfigNodes.java @@ -102,7 +102,7 @@ public class WorldConfigNodes { public final ConfigNode ENVIRONMENT = node(ConfigNode .builder("environment", World.Environment.class) .defaultValue(World.Environment.NORMAL) - .name("environment") + .name(null) .build()); public final ConfigNode GAMEMODE = node(ConfigNode.builder("gamemode", GameMode.class) @@ -112,7 +112,7 @@ public class WorldConfigNodes { public final ConfigNode GENERATOR = node(ConfigNode.builder("generator", String.class) .defaultValue("@error") // this should be set on world creation - .name("generator") + .name(null) .build()); public final ConfigNode HIDDEN = node(ConfigNode.builder("hidden", Boolean.class) @@ -167,12 +167,12 @@ public class WorldConfigNodes { public final ConfigNode SEED = node(ConfigNode.builder("seed", Long.class) .defaultValue(Long.MIN_VALUE) - .name("seed") + .name(null) .build()); public final ConfigNode SPAWN_LOCATION = node(ConfigNode.builder("spawn-location", Location.class) .defaultValue(new NullLocation()) - .name("spawn-location") + .name(null) .onSetValue((oldValue, newValue) -> { if (world == null) return; world.getBukkitWorld().peek(world -> {