File tree Expand file tree Collapse file tree 5 files changed +12
-3
lines changed
java/de/bluecolored/bluemap/common/config
resources/de/bluecolored/bluemap/config/maps
core/src/main/java/de/bluecolored/bluemap/core
resources/pack/datapack/biome Expand file tree Collapse file tree 5 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 2525package de .bluecolored .bluemap .common .config ;
2626
2727import com .flowpowered .math .vector .Vector2i ;
28- import com .flowpowered .math .vector .Vector3i ;
2928import com .google .gson .FieldNamingPolicy ;
3029import com .google .gson .Gson ;
3130import com .google .gson .GsonBuilder ;
@@ -79,6 +78,7 @@ public class MapConfig implements MapSettings {
7978 private int minInhabitedTimeRadius = 0 ;
8079
8180 private boolean renderEdges = true ;
81+ private int edgeLightStrength = 15 ;
8282
8383 private boolean enablePerspectiveView = true ;
8484 private boolean enableFlatView = true ;
Original file line number Diff line number Diff line change @@ -105,6 +105,11 @@ min-inhabited-time: 0
105105# Default is true
106106render-edges: true
107107
108+ # The sun-light strength that blocks at map-edges will recieve if render-edges is enabled.
109+ # Should be a value between 0 and 15
110+ # Default is 15
111+ edge-light-strength: 8
112+
108113# Whether the perspective view will be enabled for this map.
109114# Changing this to true requires a re-render of the map, only if the hires-layer is enabled and free-flight view is disabled.
110115# Default is true
Original file line number Diff line number Diff line change @@ -60,6 +60,11 @@ default boolean isRenderEdges() {
6060 return true ;
6161 }
6262
63+ /**
64+ * The sunlight-strength that the air blocks produced by {@link #isRenderEdges()} will have.
65+ */
66+ default int getEdgeLightStrength () { return 15 ; }
67+
6368 default boolean isIgnoreMissingLightData () {
6469 return false ;
6570 }
Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ public static class Effects {
9292 @ PostDeserialize
9393 private void init () {
9494 waterColor .a = 1f ;
95- Logger .global .logInfo ("Biome-Effects Initialized!" );
9695 }
9796
9897 }
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public BlockState getBlockState() {
109109 @ Override
110110 public LightData getLightData () {
111111 LightData ld = blockAccess .getLightData ();
112- if (renderSettings .isRenderEdges () && !isInsideRenderBounds ()) ld .set (dimensionType .hasSkylight () ? 16 : 0 , ld .getBlockLight ());
112+ if (renderSettings .isRenderEdges () && !isInsideRenderBounds ()) ld .set (dimensionType .hasSkylight () ? renderSettings . getEdgeLightStrength () : 0 , ld .getBlockLight ());
113113 return ld ;
114114 }
115115
You can’t perform that action at this time.
0 commit comments