mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-30 03:11: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)
|
public L getOptimizedActionList(final String path, final String permission)
|
||||||
{
|
{
|
||||||
if (factory == null){
|
return getDefaultActionList(path, permission).getOptimizedCopy(this);
|
||||||
setActionFactory();
|
|
||||||
}
|
|
||||||
final String value = this.getString(path);
|
|
||||||
return factory.createActionList(value, permission).getOptimizedCopy(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user