[fix] `;dupebook` turning literal Int to String instead of unicode Chars

This was really annoying to debug.
Closes #1835

Signed-off-by: Dominika <sokolov.dominika@gmail.com>
This commit is contained in:
Dominika 2021-01-11 21:11:52 -05:00
parent bbf7d0fae1
commit dd42ead163
No known key found for this signature in database
GPG Key ID: B4A5A6DCA70F861F
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ object DupeBookCommand : ClientCommand(
val joinedPages = characterGenerator
.limit(50 * 210)
.mapToObj { it.toString() }
.mapToObj { it.toChar().toString() } // this has to be turned into a Char first, otherwise you will get the raw Int value
.collect(Collectors.joining())
val pages = NBTTagList()