Skip to content

Commit

Permalink
create defaults map when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Aug 8, 2024
1 parent fd66319 commit 4fb3a16
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Object> defaults = new HashMap<>();
this.worldMinHeights = new HashMap<>(4);
if (!WorldUtil.GET_MIN_WORLD_HEIGHT_AVAILABLE) {
Map<String, Object> defaults = new HashMap<>();
defaults.put("world", PlatformUtil.getMinecraftVersion() > 17 ? -64 : 0);
defaults.put("world_nether", 0);
defaults.put("world_the_end", 0);
Expand Down

0 comments on commit 4fb3a16

Please sign in to comment.