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

FocusAI controller does not always change to a non-null player #45

Closed
cyberpwnn opened this issue Sep 27, 2016 · 0 comments
Closed

FocusAI controller does not always change to a non-null player #45

cyberpwnn opened this issue Sep 27, 2016 · 0 comments

Comments

@cyberpwnn
Copy link
Owner

It ends up returning null causing npe's

java.lang.NullPointerException
        at org.cyberpwn.effex.NPCController$2.onFocusChanged(NPCController.java:93) ~[?:?]
        at org.phantomapi.wraith.FocusAIController.onTick(FocusAIController.java:48) ~[?:?]
        at org.phantomapi.wraith.PhantomWraith.tick(PhantomWraith.java:64) ~[?:?]
        at org.phantomapi.core.WraithController.onTick(WraithController.java:32) ~[?:?]
        at org.phantomapi.construct.Controller.tick(Controller.java:147) ~[?:?]
        at org.phantomapi.construct.ControllablePlugin$6$2$1.run(ControllablePlugin.java:359) ~[?:?]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8.jar:git-Spigot-e4d4710-e1ebe52]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_101]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant