mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
Moved clear to ScriptHandler
This commit is contained in:
1 parent
13cb94d5e2
commit
dfcab1e413
2 files changed
+4
-2
No files matched your search
@@ -40,11 +40,10 @@ public class PlayerDataScript extends MultiScriptHandler {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clear() {
|
||||
super.clear();
|
||||
staticConsole = new TreeMap<>();
|
||||
errored = new ArrayList<>();
|
||||
scripts = new ArrayList<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -65,6 +65,9 @@ public abstract class ScriptHandler implements IScriptHandler {
|
||||
return this.scripts;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
this.scripts = new ArrayList<>();
|
||||
}
|
||||
/**
|
||||
* Reset the lastInited timestamp to force re-initialization on next script call.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user