mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-15 10:25:06 -04:00
load models after init of renderers
+ crash fix
This commit is contained in:
parent
b27c9a509b
commit
651a12337f
@ -77,7 +77,6 @@ object RenderLoader {
|
||||
textures.initializeSkins(connection)
|
||||
textures.loadDefaultTextures()
|
||||
font = FontManager.create(this, initLatch)
|
||||
models.load(latch)
|
||||
|
||||
|
||||
framebuffer.init()
|
||||
@ -91,6 +90,7 @@ object RenderLoader {
|
||||
// Wait for init stage to complete
|
||||
initLatch.dec()
|
||||
initLatch.await()
|
||||
models.load(latch)
|
||||
|
||||
renderer[GUIRenderer]?.atlas?.load() // TODO: remove this
|
||||
|
||||
|
@ -46,7 +46,7 @@ class ArmRenderer(override val context: RenderContext) : Renderer, Drawable {
|
||||
override val framebuffer get() = context.framebuffer.gui
|
||||
val shader = context.system.createShader(minosoft("entities/player/arm")) { ArmShader(it) }
|
||||
|
||||
init {
|
||||
override fun init(latch: AbstractLatch) {
|
||||
registerModels()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user