mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 11:24:56 -04:00
init skins after setting the player
This fixes a critical loading crash
This commit is contained in:
parent
d49f5e0b12
commit
fdc05f6348
@ -218,6 +218,7 @@ class PlayConnection(
|
||||
language = LanguageUtil.load(profiles.connection.language ?: profiles.eros.general.language, version, assetsManager)
|
||||
|
||||
player = LocalPlayerEntity(account, this, privateKey)
|
||||
settingsManager.initSkins()
|
||||
|
||||
if (!RunConfiguration.DISABLE_RENDERING) {
|
||||
val rendering = Rendering(this)
|
||||
|
@ -47,7 +47,9 @@ class ClientSettingsManager(
|
||||
|
||||
profile::language.observe(this) { sendLanguage() }
|
||||
connection.profiles.eros.general::language.observe(this) { sendLanguage() }
|
||||
}
|
||||
|
||||
fun initSkins() {
|
||||
connection.profiles.connection.skin::parts.observeSet(this, true) { connection.player.skinParts += it.adds; connection.player.skinParts -= it.removes }
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user