File tree Expand file tree Collapse file tree
invui-kotlin/src/main/kotlin/xyz/xenondevs/invui/dsl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import xyz.xenondevs.commons.provider.Provider
1414import xyz.xenondevs.commons.provider.combinedProvider
1515import xyz.xenondevs.commons.provider.provider
1616import xyz.xenondevs.invui.dsl.property.ProviderDslProperty
17+ import xyz.xenondevs.invui.internal.util.ComponentUtils
1718import xyz.xenondevs.invui.item.ItemProvider
1819import xyz.xenondevs.invui.item.ItemWrapper
1920import kotlin.contracts.InvocationKind
@@ -136,7 +137,7 @@ internal class ItemProviderDslImpl(
136137
137138 if (lore != null ) {
138139 hasTooltip = true
139- result.setData(DataComponentTypes .LORE , lore(lore))
140+ result.setData(DataComponentTypes .LORE , lore(lore.map( ComponentUtils ::withoutPreFormatting) ))
140141 }
141142
142143 if (hasTooltip != null ) {
You can’t perform that action at this time.
0 commit comments