Skip to content

Commit 6a04843

Browse files
committed
fix: Citizens trait
1 parent 52f873a commit 6a04843

File tree

1 file changed

+3
-3
lines changed
  • core/src/main/kotlin/kr/toxicity/model/compatibility/citizens/trait

1 file changed

+3
-3
lines changed

core/src/main/kotlin/kr/toxicity/model/compatibility/citizens/trait/ModelTrait.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ class ModelTrait : Trait("model") {
3535
}
3636

3737
override fun save(key: DataKey) {
38-
key.setString("", npc.entity?.uniqueId?.let { uuid ->
39-
BetterModel.registryOrNull(uuid)?.first()?.name()
40-
})
38+
npc.entity?.uniqueId?.let { uuid ->
39+
key.setString("", BetterModel.registryOrNull(uuid)?.first()?.name())
40+
}
4141
}
4242

4343
override fun onSpawn() {

0 commit comments

Comments
 (0)