fix: new world from world portal not updating world ref of IngameRenderer

This commit is contained in:
minjaesong
2023-09-14 13:33:24 +09:00
parent 6772daaf37
commit 1b0b279e3d
4 changed files with 68 additions and 56 deletions

View File

@@ -201,12 +201,14 @@ internal object BlocksDrawer {
}
catch (e: ClassCastException) { }
measureDebugTime("Renderer.Tiling") {
drawTiles(WALL)
drawTiles(TERRAIN) // regular tiles
drawTiles(FLUID)
drawTiles(OCCLUSION)
//drawTiles(WIRE)
if (!world.layerTerrain.ptrDestroyed) {
measureDebugTime("Renderer.Tiling") {
drawTiles(WALL)
drawTiles(TERRAIN) // regular tiles
drawTiles(FLUID)
drawTiles(OCCLUSION)
//drawTiles(WIRE)
}
}
}