mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-06 10:27:26 +02: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