mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 21:32:19 +00:00
DataScript:
-Now doesn't create a new instance of NpcAPI
This commit is contained in:
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);
|
||||
|
||||
@@ -74,7 +74,7 @@ public class NpcAPI extends AbstractNpcAPI {
|
||||
public static final EventBus EVENT_BUS = new EventBus();
|
||||
private static AbstractNpcAPI instance = null;
|
||||
|
||||
public NpcAPI() {
|
||||
private NpcAPI() {
|
||||
}
|
||||
|
||||
public static void clearCache() {
|
||||
|
||||
Reference in new issue
Block a user