From 57cdcb21ec3aa6f4d4f4ab07a3e4e8fd7d32f28d Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 13 Nov 2024 15:13:36 +0100 Subject: fix: Fix incorrect model initialization for bad optimizations --- src/main/kotlin/gui/entity/GuiPlayer.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/gui/entity/GuiPlayer.kt b/src/main/kotlin/gui/entity/GuiPlayer.kt index d6d5586..f728dbf 100644 --- a/src/main/kotlin/gui/entity/GuiPlayer.kt +++ b/src/main/kotlin/gui/entity/GuiPlayer.kt @@ -33,7 +33,9 @@ class GuiPlayer(world: ClientWorld?, profile: GameProfile?) : AbstractClientPlay } fun postInit() { + skinTexture = DefaultSkinHelper.getSkinTextures(this.getUuid()).texture lastVelocity = Vec3d.ZERO + model = Model.WIDE } override fun isCreative(): Boolean { @@ -44,7 +46,7 @@ class GuiPlayer(world: ClientWorld?, profile: GameProfile?) : AbstractClientPlay return false } - var skinTexture: Identifier = DefaultSkinHelper.getSkinTextures(this.getUuid()).texture + lateinit var skinTexture: Identifier var capeTexture: Identifier? = null var model: Model = Model.WIDE override fun getSkinTextures(): SkinTextures { -- cgit