Bug Open

Wrap Lore Attribute breaks Lore Placeholders

#10197 opened by CarrotChomps 19 hours ago

CarrotChompsreported this bug

Using a lore placeholder in a lore template that has a wrap attribute breaks the lore placeholder and causes it to print multiple times.

For example: ``` BaseGreatsword: Material: IRON_SWORD Stats: - ATTACK_DAMAGE 5 ADDITIVE - ATTACK_SPEED -1.2 ADDITIVE Skills: - skill{skill=greatsword_slam} @trigger ~onAttack Lore: Template: BaseWeaponLore Description: 'This is a description' ```

where

``` BaseWeaponLore: Lines: - '{lore.Description}<lore.Description{wrap=10}>' - '<gray>When in Main Hand:' - '<blue><placeholder.AttackDamageSigned> Attack Damage</blue>' - '<blue><placeholder.AttackSpeedSigned> Attack Speed</blue>' ```

causes the output ``` {lore.Description}This is a {lore.Description}description {lore.Description}n ```

Expected would be to have ``` This is a descriptio n ```

Where the wrapped line only appears if the Lore Template was given that parameter.

CarrotChompscommented

Also it seems that mini message tags count towards the string length for the wrap, rather than the stripped down version.

i.e. A lore parameter with Description: 10 15

returns 10 15

where <lore.Description{wrap=10}

Sign in to join the discussion.