mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-04 06:31:42 +07:00
Make CoreItemsDisplay not show up if nothing to show (#5263)
This commit is contained in:
parent
b11b087d53
commit
760962c2b4
@ -19,12 +19,15 @@ public class CoreItemsDisplay extends Table{
|
||||
|
||||
public void resetUsed(){
|
||||
usedItems.clear();
|
||||
background(null);
|
||||
}
|
||||
|
||||
void rebuild(){
|
||||
clear();
|
||||
background(Styles.black6);
|
||||
margin(4);
|
||||
if(usedItems.size > 0){
|
||||
background(Styles.black6);
|
||||
margin(4);
|
||||
}
|
||||
|
||||
update(() -> {
|
||||
core = Vars.player.team().core();
|
||||
|
Loading…
Reference in New Issue
Block a user