Fixed infinite fire / Command center logic control

This commit is contained in:
Anuken
2021-06-05 15:10:34 -04:00
parent d0da46e715
commit ade313fc1b
7 changed files with 31 additions and 7 deletions

View File

@@ -1,8 +1,10 @@
package mindustry.logic;
import arc.struct.*;
import arc.util.*;
import mindustry.*;
import mindustry.content.*;
import mindustry.entities.units.*;
import mindustry.logic.LExecutor.*;
import mindustry.type.*;
import mindustry.world.*;
@@ -55,6 +57,10 @@ public class GlobalConstants{
for(LAccess sensor : LAccess.all){
put("@" + sensor.name(), sensor);
}
for(UnitCommand cmd : UnitCommand.all){
put("@command" + Strings.capitalize(cmd.name()), cmd);
}
}
/** @return a constant ID > 0 if there is a constant with this name, otherwise -1. */