Fixed several tooltips (i.e. Encoded Pattern) losing parts of the text due to TextComponent.shallowCopy not keeping attached siblings.

This commit is contained in:
Sebastian Hartte
2020-06-16 17:38:10 +02:00
parent f6f8ac20e8
commit 4759a6d204
3 changed files with 12 additions and 15 deletions
@@ -73,7 +73,7 @@ public class ItemFacade extends AEBaseItem implements IFacadeItem, IAlphaPassIte
final ItemStack in = this.getTextureItem( is );
if( !in.isEmpty() )
{
return super.getDisplayName( is ).shallowCopy().appendText(" - ").appendSibling(in.getDisplayName());
return super.getDisplayName( is ).deepCopy().appendText(" - ").appendSibling(in.getDisplayName());
}
}
catch( final Throwable ignored )