mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-09 18:14:06 +09:00
things are not quite working yet but here's more descriptive error message for ya
This commit is contained in:
@@ -153,11 +153,12 @@ object IngameRenderer : Disposable {
|
||||
fun setRenderedWorld(world: GameWorld) {
|
||||
try {
|
||||
if (this.world != world) {
|
||||
printdbg(this, "World change detected -- " +
|
||||
"old world: ${this.world.hashCode()}, " +
|
||||
"new world: ${world.hashCode()}")
|
||||
// printdbg(this, "World change detected -- " +
|
||||
// "old world: ${this.world.hashCode()}, " +
|
||||
// "new world: ${world.hashCode()}")
|
||||
|
||||
// change worlds from internal methods
|
||||
this.world = world
|
||||
LightmapRenderer.internalSetWorld(world)
|
||||
BlocksDrawer.world = world
|
||||
FeaturesDrawer.world = world
|
||||
@@ -165,8 +166,6 @@ object IngameRenderer : Disposable {
|
||||
}
|
||||
catch (e: UninitializedPropertyAccessException) {
|
||||
// new init, do nothing
|
||||
}
|
||||
finally {
|
||||
this.world = world
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user