Skip to content

Commit 6cb4e1d

Browse files
committed
Change default nether mask to include the nether-ceiling
1 parent 19ef504 commit 6cb4e1d

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

common/src/main/java/de/bluecolored/bluemap/common/config/BlueMapConfigManager.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,7 @@ private ConfigTemplate createOverworldMapTemplate(String name, Path worldFolder,
386386
.setVariable("void-color", "#000000")
387387
.setVariable("ambient-light", "0.1")
388388
.setVariable("remove-caves-below-y", "55")
389-
.setConditional("max-y-comment", true)
390-
.setVariable("max-y", "100");
389+
.setConditional("remove-nether-ceiling", false);
391390
}
392391

393392
private ConfigTemplate createNetherMapTemplate(String name, Path worldFolder, Key dimension, int index) throws IOException {
@@ -400,8 +399,7 @@ private ConfigTemplate createNetherMapTemplate(String name, Path worldFolder, Ke
400399
.setVariable("void-color", "#150000")
401400
.setVariable("ambient-light", "0.6")
402401
.setVariable("remove-caves-below-y", "-10000")
403-
.setConditional("max-y-comment", false)
404-
.setVariable("max-y", "90");
402+
.setConditional("remove-nether-ceiling", true);
405403
}
406404

407405
private ConfigTemplate createEndMapTemplate(String name, Path worldFolder, Key dimension, int index) throws IOException {
@@ -414,8 +412,7 @@ private ConfigTemplate createEndMapTemplate(String name, Path worldFolder, Key d
414412
.setVariable("void-color", "#080010")
415413
.setVariable("ambient-light", "0.6")
416414
.setVariable("remove-caves-below-y", "-10000")
417-
.setConditional("max-y-comment", true)
418-
.setVariable("max-y", "100");
415+
.setConditional("remove-nether-ceiling", false);
419416
}
420417

421418
public static String formatPath(Path path) {

common/src/main/resources/de/bluecolored/bluemap/config/maps/map.conf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,14 @@ render-mask: [
8989
#min-z: -4000
9090
#max-z: 4000
9191
#min-y: 50
92-
${max-y-comment<<#>>}max-y: ${max-y}
93-
}
92+
#max-y: 100
93+
}${remove-nether-ceiling<<
94+
{
95+
# this removes the nethers ceiling (everything at and between y 90 and 127)
96+
subtract: true
97+
min-y: 90
98+
max-y: 127
99+
}>>}
94100
]
95101

96102
# The minimum "inhabitedTime" value that a chunk must have to be rendered.

0 commit comments

Comments
 (0)