mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-08 14:59:16 -04:00
text: fix translation insertion with intarray (nbt)
This commit is contained in:
parent
40b22db83a
commit
e5c2d79f17
@ -266,7 +266,8 @@ class BaseComponent : ChatComponent, Iterable<ChatComponent> {
|
||||
}
|
||||
|
||||
private fun JsonObject.with(translator: Translator?, parent: TextComponent, restricted: Boolean): Array<ChatComponent>? {
|
||||
val with = this["with"]?.toJsonList() ?: return null
|
||||
val raw = this["with"]
|
||||
val with = raw?.toJsonList()?.iterator() ?: raw.nullCast<IntArray>()?.iterator() ?: return null
|
||||
val parts: MutableList<ChatComponent> = mutableListOf()
|
||||
for (part in with) {
|
||||
if (part == null) continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user