diff --git a/common/src/main/kotlin/quaedam/projection/music/SmartInstrument.kt b/common/src/main/kotlin/quaedam/projection/music/SmartInstrument.kt index 76b54f1..bce4353 100644 --- a/common/src/main/kotlin/quaedam/projection/music/SmartInstrument.kt +++ b/common/src/main/kotlin/quaedam/projection/music/SmartInstrument.kt @@ -174,6 +174,9 @@ class SmartInstrumentBlockEntity(pos: BlockPos, state: BlockState) : override fun saveAdditional(tag: CompoundTag) { super.saveAdditional(tag) + if (playerData != null) { + tag.put(TAG_MUSIC, playerData!!) + } if (player != null) { tag.put(TAG_MUSIC, player!!.toTag()) }