Fix default sky-light being 16 instead of 15

This commit is contained in:
Lukas Rieger (Blue) 2024-07-01 20:02:25 +02:00
parent 22450e7632
commit e36e08ea35
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6
3 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ public Chunk_1_13(MCAWorld world, Data data) {
this.inhabitedTime = level.inhabitedTime; this.inhabitedTime = level.inhabitedTime;
DimensionType dimensionType = getWorld().getDimensionType(); DimensionType dimensionType = getWorld().getDimensionType();
this.skyLight = dimensionType.hasSkylight() ? 16 : 0; this.skyLight = dimensionType.hasSkylight() ? 15 : 0;
this.worldSurfaceHeights = level.heightmaps.worldSurface; this.worldSurfaceHeights = level.heightmaps.worldSurface;
this.oceanFloorHeights = level.heightmaps.oceanFloor; this.oceanFloorHeights = level.heightmaps.oceanFloor;

View File

@ -75,7 +75,7 @@ public Chunk_1_16(MCAWorld world, Data data) {
this.inhabitedTime = level.inhabitedTime; this.inhabitedTime = level.inhabitedTime;
DimensionType dimensionType = getWorld().getDimensionType(); DimensionType dimensionType = getWorld().getDimensionType();
this.skyLight = dimensionType.hasSkylight() ? 16 : 0; this.skyLight = dimensionType.hasSkylight() ? 15 : 0;
int worldHeight = dimensionType.getHeight(); int worldHeight = dimensionType.getHeight();
int bitsPerHeightmapElement = MCAUtil.ceilLog2(worldHeight + 1); int bitsPerHeightmapElement = MCAUtil.ceilLog2(worldHeight + 1);

View File

@ -74,7 +74,7 @@ public Chunk_1_18(MCAWorld world, Data data) {
DimensionType dimensionType = getWorld().getDimensionType(); DimensionType dimensionType = getWorld().getDimensionType();
this.worldMinY = dimensionType.getMinY(); this.worldMinY = dimensionType.getMinY();
this.skyLight = dimensionType.hasSkylight() ? 16 : 0; this.skyLight = dimensionType.hasSkylight() ? 15 : 0;
int worldHeight = dimensionType.getHeight(); int worldHeight = dimensionType.getHeight();
int bitsPerHeightmapElement = MCAUtil.ceilLog2(worldHeight + 1); int bitsPerHeightmapElement = MCAUtil.ceilLog2(worldHeight + 1);