diff options
author | Linnea Gräf <nea@nea.moe> | 2024-11-13 15:13:36 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-11-15 18:40:13 +0100 |
commit | 57cdcb21ec3aa6f4d4f4ab07a3e4e8fd7d32f28d (patch) | |
tree | e8f690b375614b4ba0634e3f80f0871ff083766d /src/main/kotlin/gui | |
parent | 2c3aa3bd84e6a129ca189ce0bc8d5705bc53ee72 (diff) | |
download | Firmament-57cdcb21ec3aa6f4d4f4ab07a3e4e8fd7d32f28d.tar.gz Firmament-57cdcb21ec3aa6f4d4f4ab07a3e4e8fd7d32f28d.tar.bz2 Firmament-57cdcb21ec3aa6f4d4f4ab07a3e4e8fd7d32f28d.zip |
fix: Fix incorrect model initialization for bad optimizations
Diffstat (limited to 'src/main/kotlin/gui')
-rw-r--r-- | src/main/kotlin/gui/entity/GuiPlayer.kt | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |