mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-15 18:24:51 +00:00
Moved NpcAPI.actionManager to ActionManager.GLOBAL
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user