mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-09 04:01:54 +01:00
Allow ActionFactory to get null-definitions, for instance with missing
config presets.
This commit is contained in:
parent
f5eb4ca16c
commit
2a9e42ea75
@ -70,6 +70,9 @@ public class ActionFactory {
|
||||
*/
|
||||
public ActionList createActionList(final String definition, final String permission) {
|
||||
final ActionList list = new ActionList(permission);
|
||||
|
||||
// Do check for null, to allow removing default actions, for better robustness.
|
||||
if (definition == null) return list;
|
||||
|
||||
boolean first = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user