mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 22:27:32 +00:00
ScriptController.globalRevision, Incremented whenever external scripts loaded.
This commit is contained in:
1 parent
41722a37d7
commit
a9bfa6c120
2 files changed
+10
No files matched your search
@@ -64,6 +64,12 @@ public class ScriptController {
|
||||
public GlobalNPCDataScript globalNpcScripts = new GlobalNPCDataScript((EntityNPCInterface) null);
|
||||
public long lastGlobalNpcUpdate = 0L;
|
||||
|
||||
/**
|
||||
* Incremented whenever external scripts loaded.
|
||||
*/
|
||||
public int globalRevision;
|
||||
|
||||
|
||||
public ScriptController() {
|
||||
Instance = this;
|
||||
manager = new ScriptEngineManager();
|
||||
@@ -257,6 +263,7 @@ public class ScriptController {
|
||||
loadDir(scriptDir, "", ext);
|
||||
}
|
||||
lastLoaded = System.currentTimeMillis();
|
||||
globalRevision++;
|
||||
}
|
||||
|
||||
private void loadDir(File dir, String name, String ext) {
|
||||
|
||||
Reference in new issue
Block a user