Minestom/Arena

Entity can look at another entity that is within it's own instance

emortaldev opened this issue · 0 comments

[Ms-Tick-0] [01:52:09] (Main.lambda$main$7) - ERROR - Global exception handler: java.lang.IllegalArgumentException: Entity can look at another entity that is within it's own instance
        at net.minestom.server.utils.validate.Check.argCondition(Check.java:36)
        at net.minestom.server.entity.Entity.lookAt(Entity.java:355)
        at net.minestom.arena.game.mob.EvokerMob.lambda$new$1(EvokerMob.java:32)
        at net.minestom.arena.game.mob.EvokerMob$ActionGoal.tick(EvokerMob.java:97)
        at net.minestom.server.entity.ai.EntityAIGroup.tick(EntityAIGroup.java:94)
        at net.minestom.server.entity.ai.EntityAI.lambda$aiTick$0(EntityAI.java:48)
        at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
        at java.base/java.util.concurrent.CopyOnWriteArraySet.forEach(CopyOnWriteArraySet.java:425)
        at net.minestom.server.entity.ai.EntityAI.aiTick(EntityAI.java:48)
        at net.minestom.server.entity.EntityCreature.update(EntityCreature.java:48)
        at net.minestom.server.entity.Entity.tick(Entity.java:540)
        at net.minestom.server.thread.TickThread.tick(TickThread.java:66)
        at net.minestom.server.thread.TickThread.run(TickThread.java:41)

on another note, that error message is pretty confusing lol, maybe "Entity cannot look at another entity that isn't within it's own instance"