Moved NpcAPI.actionManager to ActionManager.GLOBAL

This commit is contained in:
bigguy345 committed 2025-07-08 14:34:39 +03:00
1 parent 70f0ab1e6f
commit 91dc56bf87
3 files changed
+19 -7

No files matched your search

@@ -79,7 +79,6 @@ public class NpcAPI extends AbstractNpcAPI {
private static final CacheHashMap<ItemStack, CacheHashMap.CachedObject<ScriptItemStack>> scriptItemCache = new CacheHashMap<>(60 * 1000);
public static final HashMap<String, Object> engineObjects = new HashMap<>();
public static final EventBus EVENT_BUS = new EventBus();
public static final ActionManager actionManager = new ActionManager();
private static AbstractNpcAPI instance = null;
private final static String API_USER_AGENT = "CNPC+API";
@@ -569,10 +568,7 @@ public class NpcAPI extends AbstractNpcAPI {
}
public IActionManager getActionManager() {
if (actionManager.getName().isEmpty())
actionManager.setName("Global");
return actionManager;
return ActionManager.GLOBAL;
}
private void checkWorld() {