Make CoreItemsDisplay not show up if nothing to show (#5263)
This commit is contained in:
@@ -19,12 +19,15 @@ public class CoreItemsDisplay extends Table{
|
|||||||
|
|
||||||
public void resetUsed(){
|
public void resetUsed(){
|
||||||
usedItems.clear();
|
usedItems.clear();
|
||||||
|
background(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rebuild(){
|
void rebuild(){
|
||||||
clear();
|
clear();
|
||||||
background(Styles.black6);
|
if(usedItems.size > 0){
|
||||||
margin(4);
|
background(Styles.black6);
|
||||||
|
margin(4);
|
||||||
|
}
|
||||||
|
|
||||||
update(() -> {
|
update(() -> {
|
||||||
core = Vars.player.team().core();
|
core = Vars.player.team().core();
|
||||||
|
|||||||
Reference in New Issue
Block a user