fixes biomes not saving fixes #1322

This commit is contained in:
gnembon committed 2022-03-20 15:16:31 +01:00
1 parent 6ed33ecc50
commit c4ab2467ba
1 file changed
+1 -2
@@ -1254,8 +1254,7 @@ public class WorldAccess {
}
ServerLevel world = cc.s.getLevel();
BlockPos pos = locator.block.getPos();
ChunkAccess chunk = world.getChunk(pos.getX() >> 4, pos.getZ() >> 4, ChunkStatus.BIOMES);
if (chunk instanceof LevelChunk) return Value.FALSE; // questinoalble, but it makes sense
ChunkAccess chunk = world.getChunk(pos); // getting level chunk instead of protochunk with biomes
int biomeX = QuartPos.fromBlock(pos.getX());
int biomeY = QuartPos.fromBlock(pos.getY());
int biomeZ = QuartPos.fromBlock(pos.getZ());