CraftBook 3

CraftBook 3

139k Downloads

BetterLeads Issues & Error NPE

LadyCailinBot opened this issue ยท 1 comments

commented

CRAFTBOOK-3203 - Reported by Ztech

Hello,
The plugin generates the config option allowed-mobs with "ZOMBIE" and "SPIDER", I was unable to leash either until lowercasing the entity IDs. Not sure if this is normal or not.

Also, while testing I found that leashing a spider requires at least 2 leashes in a stack and consumes one upon doing so. After leashing a spider, I was still attacked by other spiders and found errors in the log. Thanks.

[22:08:26] [Server thread/ERROR]: Could not pass event EntityTargetLivingEntityEvent to CraftBook v3.9-SNAPSHOT
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-798f32d-0cd0397]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-798f32d-0cd0397]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-798f32d-0cd0397]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.EntityInsentient.setGoalTarget(EntityInsentient.java:148) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.PathfinderGoalNearestAttackableTarget.c(PathfinderGoalNearestAttackableTarget.java:89) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.PathfinderGoalSelector.a(SourceFile:102) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.EntityInsentient.doTick(EntityInsentient.java:641) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.EntityLiving.n(EntityLiving.java:1928) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.EntityInsentient.n(EntityInsentient.java:489) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.EntityMonster.n(EntityMonster.java:24) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.EntityLiving.m(EntityLiving.java:1784) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.EntityInsentient.m(EntityInsentient.java:249) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.EntityMonster.m(EntityMonster.java:28) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.EntitySpider.m(EntitySpider.java:41) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.World.entityJoinedWorld(World.java:1617) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.World.g(World.java:1592) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.World.tickEntities(World.java:1426) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.WorldServer.tickEntities(WorldServer.java:632) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.MinecraftServer.D(MinecraftServer.java:797) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.DedicatedServer.D(DedicatedServer.java:399) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.MinecraftServer.C(MinecraftServer.java:665) [spigot.jar:git-Spigot-798f32d-0cd0397]
at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:564) [spigot.jar:git-Spigot-798f32d-0cd0397]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_91]
Caused by: java.lang.NullPointerException
at com.sk89q.craftbook.mechanics.BetterLeads.onEntityTarget(BetterLeads.java:105) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-798f32d-0cd0397]
... 23 more

Currently have it set up as so:
BetterLeads:
stop-mob-target: true
owner-unleash-only: true
hitch-persists: true
mob-repel: true
allowed-mobs:
- Zombie
- Spider
- PigZombie

commented

Comment by me4502

Should be fixed in latest build.