diff --git a/v1_20_R3/src/main/kotlin/com/mineinabyss/emojy/nms/v1_20_R3/EmojyNMSHandler.kt b/v1_20_R3/src/main/kotlin/com/mineinabyss/emojy/nms/v1_20_R3/EmojyNMSHandler.kt index fc1a091..aef36d0 100644 --- a/v1_20_R3/src/main/kotlin/com/mineinabyss/emojy/nms/v1_20_R3/EmojyNMSHandler.kt +++ b/v1_20_R3/src/main/kotlin/com/mineinabyss/emojy/nms/v1_20_R3/EmojyNMSHandler.kt @@ -168,7 +168,10 @@ class EmojyNMSHandler : IEmojyNMSHandler { override fun writeNbt(compound: Tag?): FriendlyByteBuf { return super.writeNbt(compound?.apply { - transform(this as CompoundTag, EmojyNMSHandlers.transformer()) + when (this) { + is CompoundTag -> transform(this, EmojyNMSHandlers.transformer()) + is StringTag -> transform(this, EmojyNMSHandlers.transformer()) + } }) }