diff options
author | Linnea Gräf <nea@nea.moe> | 2025-05-05 15:33:21 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-05-05 15:33:21 +0200 |
commit | 38fd61fdcc70f75f5b8b5eb39e21c34aaf5ceb90 (patch) | |
tree | b530b475da81a6b31814f96719b249e4e7136a6b /src/main/kotlin/features/debug/PowerUserTools.kt | |
parent | 0a5a108b157762d251e547c08d206391177e4af9 (diff) | |
download | Firmament-38fd61fdcc70f75f5b8b5eb39e21c34aaf5ceb90.tar.gz Firmament-38fd61fdcc70f75f5b8b5eb39e21c34aaf5ceb90.tar.bz2 Firmament-38fd61fdcc70f75f5b8b5eb39e21c34aaf5ceb90.zip |
Diffstat (limited to 'src/main/kotlin/features/debug/PowerUserTools.kt')
-rw-r--r-- | src/main/kotlin/features/debug/PowerUserTools.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/kotlin/features/debug/PowerUserTools.kt b/src/main/kotlin/features/debug/PowerUserTools.kt index 251fc8b..4387ced 100644 --- a/src/main/kotlin/features/debug/PowerUserTools.kt +++ b/src/main/kotlin/features/debug/PowerUserTools.kt @@ -180,10 +180,10 @@ object PowerUserTools : FirmamentFeature { Pair(item, Text.stringifiedTranslatable("firmament.tooltip.copied.skull-id", skullTexture.toString())) println("Copied skull id: $skullTexture") } else if (it.matches(TConfig.copyItemStack)) { - ClipboardUtils.setTextContent( - ItemStack.CODEC - .encodeStart(MC.currentOrDefaultRegistries.getOps(NbtOps.INSTANCE), item) - .orThrow.toPrettyString()) + val nbt = ItemStack.CODEC + .encodeStart(MC.currentOrDefaultRegistries.getOps(NbtOps.INSTANCE), item) + .orThrow + ClipboardUtils.setTextContent(nbt.toPrettyString()) lastCopiedStack = Pair(item, Text.stringifiedTranslatable("firmament.tooltip.copied.stack")) } } |