mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 02:34:49 +00:00
Player, Forge, & NPC script console changes, & further fix to concurrent modification exception on script container.
This commit is contained in:
1 parent
9b330007fd
commit
5b589768f6
11 files changed
+77
-88
No files matched your search
@@ -155,8 +155,8 @@ public class ScriptContainer {
|
||||
}
|
||||
|
||||
engine.put("API", NpcAPI.Instance());
|
||||
Set<Map.Entry<String, Object>> engineEntries = NpcAPI.engineObjects.entrySet();
|
||||
for (Map.Entry<String,Object> objectEntry : engineEntries) {
|
||||
HashMap<String,Object> engineEntries = new HashMap<>(NpcAPI.engineObjects);
|
||||
for (Map.Entry<String,Object> objectEntry : engineEntries.entrySet()) {
|
||||
engine.put(objectEntry.getKey(),objectEntry.getValue());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user