diff options
Diffstat (limited to 'azalea-chat/src')
| -rw-r--r-- | azalea-chat/src/component.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/azalea-chat/src/component.rs b/azalea-chat/src/component.rs index ed7a0648..8eaaf178 100644 --- a/azalea-chat/src/component.rs +++ b/azalea-chat/src/component.rs @@ -529,8 +529,9 @@ impl FormattedText { component.append(FormattedText::from_nbt_tag(extra)?); } - let style = Style::from_compound(compound).ok()?; - component.get_base_mut().style = style; + let base_style = Style::from_compound(compound).ok()?; + let new_style = &mut component.get_base_mut().style; + *new_style = new_style.merged_with(&base_style); Some(component) } |
