Skip to content

Commit

Permalink
Fixed heightmaps in nether
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Dec 28, 2023
1 parent 4514279 commit 290394d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,9 @@ private Chunk remapChunk(final BedrockChunk chunk) throws Exception {
}
}


remappedChunk.getHeightMap().put("WORLD_SURFACE", new LongArrayTag(CompactArrayUtil.createCompactArrayWithPadding(9, worldSurface.length, i -> worldSurface[i])));
remappedChunk.getHeightMap().put("MOTION_BLOCKING", new LongArrayTag(CompactArrayUtil.createCompactArrayWithPadding(9, motionBlocking.length, i -> motionBlocking[i])));
final int bitsPerEntry = MathUtil.ceilLog2(this.worldHeight + 1);
remappedChunk.getHeightMap().put("WORLD_SURFACE", new LongArrayTag(CompactArrayUtil.createCompactArrayWithPadding(bitsPerEntry, worldSurface.length, i -> worldSurface[i])));
remappedChunk.getHeightMap().put("MOTION_BLOCKING", new LongArrayTag(CompactArrayUtil.createCompactArrayWithPadding(bitsPerEntry, motionBlocking.length, i -> motionBlocking[i])));

return remappedChunk;
}
Expand Down

0 comments on commit 290394d

Please sign in to comment.