Headless load fix
This commit is contained in:
@@ -66,8 +66,10 @@ public class CommandCenter extends Block{
|
|||||||
public void load(){
|
public void load(){
|
||||||
super.load();
|
super.load();
|
||||||
|
|
||||||
for(UnitCommand cmd : UnitCommand.all){
|
if(ui != null){
|
||||||
commandRegions[cmd.ordinal()] = ui.getIcon("command" + Strings.capitalize(cmd.name()));
|
for(UnitCommand cmd : UnitCommand.all){
|
||||||
|
commandRegions[cmd.ordinal()] = ui.getIcon("command" + Strings.capitalize(cmd.name()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user