Better implementation of #8810

This commit is contained in:
Anuken
2023-07-23 16:30:44 -04:00
parent 10fe6b9007
commit 636ce4ca94
2 changed files with 5 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ public class CoreItemsDisplay extends Table{
if(usedItems.contains(item)){
image(item.uiIcon).size(iconSmall).padRight(3).tooltip(t -> t.background(Styles.black6).margin(4f).add(item.localizedName).style(Styles.outlineLabel));
//TODO leaks garbage
label(() -> core == null ? "0" : UI.formatAmount(core.items.get(item))).padRight(3).minWidth(52f).left();
label(() -> core == null ? "0" : UI.formatAmount(core.items.get(item))).padRight(3).minWidth(52f).left().tooltip(t -> t.background(Styles.black6).margin(4f).label(() -> core == null ? "0" : core.items.get(item) + "").style(Styles.outlineLabel));
if(++i % 4 == 0){
row();