From 4fb3a16e26d78e46313809e25b03e0830ff1a152 Mon Sep 17 00:00:00 2001 From: xGinko Date: Thu, 8 Aug 2024 20:30:52 +0200 Subject: [PATCH] create defaults map when needed --- .../src/main/java/me/xginko/aef/config/Config.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/config/Config.java b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/config/Config.java index e4b6d330..26014cc0 100755 --- a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/config/Config.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/config/Config.java @@ -58,9 +58,9 @@ public Config() throws Exception { this.nether_ceiling_max_y = getInt("general.nether-ceiling-y", 127, "The Y-level at which the nether ceiling generates the last layer\n" + "of bedrock on your server."); - this.worldMinHeights = new HashMap<>(); - Map defaults = new HashMap<>(); + this.worldMinHeights = new HashMap<>(4); if (!WorldUtil.GET_MIN_WORLD_HEIGHT_AVAILABLE) { + Map defaults = new HashMap<>(); defaults.put("world", PlatformUtil.getMinecraftVersion() > 17 ? -64 : 0); defaults.put("world_nether", 0); defaults.put("world_the_end", 0);