Bug Closed · Resolved

runaigoalselector causes ConcurrentModificationException

#5220 opened by Unknown 2 years ago

Unknownreported this bug

Summary When a MythicMob mob runs a metaskill with the ~onAttack trigger, and the skill runs the runaigoalselector skill, the mob despawns and this exeption gets thrown in the console:

Steps to reproduce Simply use the following mob and skill, spawn it, and let it attack you. Mob: https://pastebin.com/gyz9hThw Skill: https://pastebin.com/W2gb2Xn7

Current behavior The mob despawns.

Intended correct behavior The mob doesn't despawn.

Server log file https://pastebin.com/jXnmMGJy

Debug log snippet https://pastebin.com/AQATZ5Ep

Proposed fixes I do not know what the plugin is doing that is causing this.

Unknowncommented

The runAIGoalSelector mechanic requires you to specify an index for a goal to overwrite

Test_Mob_Bug:
  Type: VINDICATOR
  Skills:
  - runaigoalselector{goal=0 randomstroll} ~onAttack

This works correctly, the mob will start randomly strolling when it attacks much of the time because it's #1 goal has become to randomly stroll.

Sign in to join the discussion.