[WIP] fix crash with falling blocks

This commit is contained in:
octarine-noise
2021-05-12 12:33:31 +02:00
parent 6a31adcdd8
commit 9dacdde761

View File

@@ -31,7 +31,8 @@ interface BlockCtx {
fun state(offset: Int3) = world.getBlockState(pos + offset)
val biome: Biome? get() =
ChunkRendererRegion_world[world]?.getBiome(pos)
(world as? WorldView)?.getBiome(pos) ?:
(world as? ChunkRendererRegion)?.let { ChunkRendererRegion_world[it]?.getBiome(pos) }
val isNormalCube: Boolean get() = state.isSimpleFullBlock(world, pos)