Bug Closed · Resolved

[Bug] dsignal mechanic sends this error

#3517 opened by Unknown 3 years ago

Unknownreported this bug

When I use the -dsignal{} mechanic in MythicMobs, it sends this error to the console. It might be because the mob I used it on wasn't spawned in the dungeon by a spawner function, but was spawned by another mob that was actually spawned by a function.

java.lang.NullPointerException: Cannot invoke "io.lumine.mythic.api.adapters.AbstractEntity.getWorld()" because the return value of "io.lumine.mythic.api.skills.SkillMetadata.getTrigger()" is null
        at MythicDungeons-1.1.0-SNAPSHOT-b82.jar//net.playavalon.mythicdungeons.mythic.DungeonSignalMechanic.cast(DungeonSignalMechanic.java:29)
        at MythicMobs-5.1.4.jar//io.lumine.mythic.core.skills.SkillMechanic.executeNoTargetSkill(SkillMechanic.java:548)
        at MythicMobs-5.1.4.jar//io.lumine.mythic.core.skills.SkillMechanic.lambda$executeSkills$6(SkillMechanic.java:493)
        at MythicMobs-5.1.4.jar//io.lumine.mythic.core.skills.SkillMechanic.runMechanic(SkillMechanic.java:511)
        at MythicMobs-5.1.4.jar//io.lumine.mythic.core.skills.SkillMechanic.executeSkills(SkillMechanic.java:493)
        at MythicMobs-5.1.4.jar//io.lumine.mythic.core.skills.SkillMechanic.execute(SkillMechanic.java:390)
        at MythicMobs-5.1.4.jar//io.lumine.mythic.core.skills.MetaSkill.execute(MetaSkill.java:284)
        at MythicMobs-5.1.4.jar//io.lumine.mythic.core.skills.AbstractSkill$DelayedSkill.run(AbstractSkill.java:404)
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101)
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1520)
        at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:486)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1444)
        at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:1214)
        at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:310)
        at java.base/java.lang.Thread.run(Thread.java:833)
Unknowncommented

Hey there! Good catch, simple goof on my part. I was using the wrong entity to retrieve the world. Should be fixed in the latest dev build.

Sign in to join the discussion.