diff options
author | nea <nea@nea.moe> | 2023-04-14 20:50:23 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-04-14 20:50:23 +0200 |
commit | 8cbde1123af4dc36e05a20bc795e4ea771182008 (patch) | |
tree | a5b0e92d4c6b872f196e37d6add472206b67b81d | |
parent | f0b14a4183a79cf53803610bde674264fd65bfd8 (diff) | |
download | NotEnoughUpdates-8cbde1123af4dc36e05a20bc795e4ea771182008.tar.gz NotEnoughUpdates-8cbde1123af4dc36e05a20bc795e4ea771182008.tar.bz2 NotEnoughUpdates-8cbde1123af4dc36e05a20bc795e4ea771182008.zip |
Fix pack dev command
-rw-r--r-- | src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/PackDevCommand.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/PackDevCommand.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/PackDevCommand.kt index fceacfab..9e29d248 100644 --- a/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/PackDevCommand.kt +++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/PackDevCommand.kt @@ -67,7 +67,7 @@ class PackDevCommand { reply("No $name found within $dist blocks") return@thenArgumentExecute } - MiscUtils.copyToClipboard(StringBuilder().appendEntityData(entity).toString().trim()) + MiscUtils.copyToClipboard(StringBuilder().also { it.appendEntityData(entity) }.toString().trim()) reply("Copied data to clipboard") }.withHelp("Find the nearest $name and copy data about them to your clipboard") } |