mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-23 04:28:55 -04:00
fix chat component array reading
This commit is contained in:
parent
9ec8512523
commit
5467a3d23f
@ -114,7 +114,7 @@ interface ChatComponent {
|
||||
val whitespaceLess = string.removeTrailingWhitespaces()
|
||||
if (whitespaceLess.startsWith('{') || whitespaceLess.startsWith('[')) {
|
||||
try {
|
||||
val read: Any = Jackson.MAPPER.readValue(whitespaceLess, Jackson.JSON_MAP_TYPE)
|
||||
val read: Any = Jackson.MAPPER.readValue(whitespaceLess, Any::class.java)
|
||||
return of(read, translator, parent, ignoreJson = true, restrictedMode)
|
||||
} catch (ignored: JacksonException) {
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user