MarkusBordihn / BOs-Easy-NPC

Create easily NPC for your world or for your mod.
Other
19 stars 7 forks source link

[Bug] NPC Follow Owner Objectives do not work immediately if you change the owner with the command #155

Closed himmelam011 closed 5 months ago

himmelam011 commented 5 months ago

Describe the bug When changing the NPC owner with the command "/easy_npc owner" Follow Owner Objectives are not triggered immediately, but only after the checkbox is checked again.

To Reproduce Steps to reproduce the behavior:

  1. Select an NPC of which you are NOT the owner.
  2. Set it to Objectives --> Follow --> Follow Owner
  3. Use the command /easy_npc owner set [NPC id] [your nickname]
  4. See error: The NPC does not follow you, even if you are the owner of this NPC.
  5. To fix:
    1. Disable Objectives --> Follow --> Follow Owner
    2. Enable it back
  6. Npcs follow you, but it would be nice to have them follow you without reactivation.

Expected behavior The NPC should follow the player immediately after applying the /easy_npc owner set command

Screenshots https://github.com/MarkusBordihn/BOs-Easy-NPC/assets/166988975/2651ac39-606a-4419-b69e-8fe495b4a429