aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-06-23 11:55:44 +0200
committerLinnea Gräf <nea@nea.moe>2025-06-23 11:55:44 +0200
commit72b8d8c8a37cd4396de44f0bcd2a9e8bd4b073b9 (patch)
tree66c0dcdf3341aab8a9c99b870b7b15e19fe87725 /src
parent3e059673fd59f037961596fdc4032db8c815814d (diff)
downloadFirmament-72b8d8c8a37cd4396de44f0bcd2a9e8bd4b073b9.tar.gz
Firmament-72b8d8c8a37cd4396de44f0bcd2a9e8bd4b073b9.tar.bz2
Firmament-72b8d8c8a37cd4396de44f0bcd2a9e8bd4b073b9.zip
fix: Recipe exporter not grabbing skull textures correctly
Diffstat (limited to 'src')
-rw-r--r--src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt b/src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt
index 588aba1..d7f4620 100644
--- a/src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt
+++ b/src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt
@@ -4,6 +4,7 @@ import kotlinx.coroutines.launch
import kotlinx.serialization.json.JsonArray
import kotlinx.serialization.json.JsonObject
import kotlinx.serialization.json.JsonPrimitive
+import net.minecraft.client.network.AbstractClientPlayerEntity
import net.minecraft.client.network.ClientPlayerEntity
import net.minecraft.entity.decoration.ArmorStandEntity
import moe.nea.firmament.Firmament
@@ -64,7 +65,7 @@ object ExportRecipe {
val reply = waitForTextInput("$guessName (NPC)", "Export stub")
val id = generateName(reply)
ItemExporter.exportStub(id, reply) {
- val playerEntity = entity as? ClientPlayerEntity
+ val playerEntity = entity as? AbstractClientPlayerEntity
val textureUrl = playerEntity?.skinTextures?.textureUrl
if (textureUrl != null)
it.setSkullOwner(playerEntity.uuid, textureUrl)