Allow mods to add to logic effect map (#9507)

* Allow mods to add to logic effect map

* Switch to being only a single add.
This commit is contained in:
MEEPofFaith 2024-02-01 16:04:51 -08:00 committed by GitHub
parent ab13a76ebb
commit e1a5484074
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,6 +57,12 @@ public class LogicFx{
return map.get(name);
}
/** Adds an effect entry to the map. */
public static void add(String name, EffectEntry entry){
entry.name = name;
map.put(name, entry);
}
public static String[] all(){
return map.orderedKeys().toArray(String.class);
}