mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 16:37:45 +00:00
Fixed concurrent modification exception when saving scripts.
This commit is contained in:
1 parent
bcfd44d8fe
commit
0ddcd15162
1 file changed
+3
-2
@@ -155,8 +155,9 @@ public class ScriptContainer {
|
||||
}
|
||||
|
||||
engine.put("API", NpcAPI.Instance());
|
||||
for (Map.Entry<String,Object> engineObjects : NpcAPI.engineObjects.entrySet()) {
|
||||
engine.put(engineObjects.getKey(),engineObjects.getValue());
|
||||
Set<Map.Entry<String, Object>> engineEntries = NpcAPI.engineObjects.entrySet();
|
||||
for (Map.Entry<String,Object> objectEntry : engineEntries) {
|
||||
engine.put(objectEntry.getKey(),objectEntry.getValue());
|
||||
}
|
||||
|
||||
Current = this;
|
||||
|
||||
Reference in new issue
Block a user