DataScript:

-Now doesn't create a new instance of NpcAPI
This commit is contained in:
Luis C.M committed 2023-05-30 01:27:34 -05:00
1 parent 1ce5b7b302
commit 895d20335f
2 files changed
+2 -2

No files matched your search

@@ -180,7 +180,7 @@ public class DataScript implements IScriptHandler {
engine.put("npc", dummyNpc);
engine.put("world", dummyWorld);
engine.put("event", event);
engine.put("API", new NpcAPI());
engine.put("API", NpcAPI.Instance());
engine.put("EntityType", entities);
engine.put("RoleType", roles);
engine.put("JobType", jobs);