AI of Wolf causing Server errors
Hi, we do use MM MythicMobs-5.7.2 PREMIUM.jar
and do have this custom Wolf AI:
Grauwolf:
Type: WOLF
Display: '&8Grauwolf'
Health: 15
Damage: 7
Drops:
#- Drops_Grauwolf
AIGoalSelectors:
- 0 clear
- 1 meleeattack
- 2 randomstroll
- 3 float
AITargetSelectors:
- 0 clear
- 1 players
- 2 otherfaction
Faction: raubtiere
...
Since we do use this AI, we do encounter these erros in the log sometimes:
java.util.ConcurrentModificationException: null
at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:1023) ~[?:?]
at java.util.LinkedHashMap$LinkedKeyIterator.next(LinkedHashMap.java:1046) ~[?:?]
at net.minecraft.world.entity.ai.goal.GoalSelector.tickRunningGoals(GoalSelector.java:151) ~[?:?]
at net.minecraft.world.entity.Mob.serverAiStep(Mob.java:919) ~[?:?]
at net.minecraft.world.entity.LivingEntity.aiStep(LivingEntity.java:3417) ~[?:?]
at net.minecraft.world.entity.Mob.aiStep(Mob.java:676) ~[?:?]
at net.minecraft.world.entity.AgeableMob.aiStep(AgeableMob.java:155) ~[?:?]
at net.minecraft.world.entity.animal.Animal.aiStep(Animal.java:63) ~[?:?]
at net.minecraft.world.entity.animal.Wolf.aiStep(Wolf.java:188) ~[?:?]
at net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:3066) ~[?:?]
at net.minecraft.world.entity.Mob.tick(Mob.java:438) ~[?:?]
at net.minecraft.world.entity.animal.Wolf.tick(Wolf.java:204) ~[?:?]
at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1409) ~[?:?]
at net.minecraft.world.level.Level.guardEntityTick(Level.java:1318) ~[?:?]
at net.minecraft.server.level.ServerLevel.lambda$tick$8(ServerLevel.java:916) ~[?:?]
at net.minecraft.world.level.entity.EntityTickList.forEach(EntityTickList.java:42) ~[paper-1.20.4.jar:git-Paper-496]
at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:896) ~[?:?]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1724) ~[paper-1.20.4.jar:git-Paper-496]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[paper-1.20.4.jar:git-Paper-496]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1525) ~[paper-1.20.4.jar:git-Paper-496]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1226) ~[paper-1.20.4.jar:git-Paper-496]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[paper-1.20.4.jar:git-Paper-496]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]