mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-28 10:21:22 +01:00
Reduce code duplication in getOptimizedActionList.
This commit is contained in:
parent
4dcebd11c7
commit
ae35d26a93
@ -44,11 +44,7 @@ public abstract class ConfigFileWithActions<D extends ActionData, L extends Abst
|
||||
*/
|
||||
public L getOptimizedActionList(final String path, final String permission)
|
||||
{
|
||||
if (factory == null){
|
||||
setActionFactory();
|
||||
}
|
||||
final String value = this.getString(path);
|
||||
return factory.createActionList(value, permission).getOptimizedCopy(this);
|
||||
return getDefaultActionList(path, permission).getOptimizedCopy(this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user