Fixed cores being replaceable

This commit is contained in:
Anuken
2021-03-05 14:00:53 -05:00
parent b82dca89b3
commit 4690aae197
6 changed files with 16 additions and 7 deletions

View File

@@ -9,6 +9,8 @@ import mindustry.world.*;
/** Stores global constants for logic processors. */
public class GlobalConstants{
public static final int ctrlProcessor = 1, ctrlPlayer = 2, ctrlFormation = 3;
private ObjectIntMap<String> namesToIds = new ObjectIntMap<>();
private Seq<Var> vars = new Seq<>(Var.class);
@@ -21,9 +23,9 @@ public class GlobalConstants{
//special enums
put("@ctrlProcessor", 1);
put("@ctrlPlayer", 2);
put("@ctrlFormation", 3);
put("@ctrlProcessor", ctrlProcessor);
put("@ctrlPlayer", ctrlPlayer);
put("@ctrlFormation", ctrlFormation);
//store base content