Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
emortaldev opened this issue Nov 27, 2022 · 0 comments · Fixed by #51
Closed

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

emortaldev opened this issue Nov 27, 2022 · 0 comments · Fixed by #51

Comments

@emortaldev
Copy link
Contributor

[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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant