Merge branch 'master' into future

# Conflicts:
#	src/main/java/carpet/script/api/Auxiliary.java
This commit is contained in:
gnembon committed 2022-03-21 21:19:35 +01:00
commit 679045b289
2 files changed
+2 -2

No files matched your search

@@ -1253,8 +1253,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());