Skip to content

It is not possible to register your type of actions. #215

Description

@KamikotoTkach

API registration occurs in onEnable, and NPC loading also occurs in onEnable, before API registration. Because of this, NPCs are loaded first at startup, and an error occurs when attempting to find serializers for new action types.

Making the API available in onLoad will be quite problematic, so I suggest the following:

  1. Make on register hooks in NpcApiProvider. NpcApiProvider.addOnRegisterHook(api -> ...)
  2. Make the API load BEFORE loading NPCs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions