Skip to content

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

@KamikotoTkach

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.

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