CraftBook 3

CraftBook 3

139k Downloads

3 7b1 nullpointer in using mc1204

LadyCailinBot opened this issue ยท 8 comments

commented

CRAFTBOOK-2625 - Reported by Martin.Faester

I have plantet two stone blocks beside each other with a sign on:

MC1204
50=0:0:0:=50
Mob_PIECEFUL

and a block beside for HOSTILE beside.
The one pair at 50 radius works fine and the other pair with radius 18 makes nullpointer:
03:56:35 [WARNING] [CraftBook] Task #228845 for CraftBook v2310-c7c8cf8 generated an exception
java.lang.NullPointerException
at com.sk89q.craftbook.circuits.gates.world.entity.EntityTrap.hurt(EntityTrap.java:90)
at com.sk89q.craftbook.circuits.gates.world.entity.EntityTrap.trigger(EntityTrap.java:47)
at com.sk89q.craftbook.circuits.ic.ICMechanic$1.run(ICMechanic.java:103)
at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:53)
at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:513)
at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226)
at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477)
at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410)
at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
03:56:36 [WARNING] [CraftBook] Task #229151 for CraftBook v2310-c7c8cf8 generated an exception
java.lang.NullPointerException
at com.sk89q.craftbook.circuits.gates.world.entity.EntityTrap.hurt(EntityTrap.java:90)
at com.sk89q.craftbook.circuits.gates.world.entity.EntityTrap.trigger(EntityTrap.java:47)
at com.sk89q.craftbook.circuits.ic.ICMechanic$1.run(ICMechanic.java:103)
at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:53)
at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:513)
at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226)
at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477)
at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410)
at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)

CraftBukkit version git-Bukkit-1.5.2-R0.1-8-g40bfbe4-b2787jnks (MC: 1.5.2) (Implementing API version 1.5.2-R0.2-SNAPSHOT)

commented

Comment by me4502

MOB_FRIENDLY isn't a valid entity type. It's MOB_PEACEFUL. That error means you have an invalid entity type.

Edit; I've stopped the error occuring.

commented

Comment by Martin.Faester

ah lol. ill fix it then. thanks.

commented

Comment by Martin.Faester

BT. which one is most correct,
MC1204
50=0:0:0:=50
Mob_PIECEFUL

OR

MC1204
50=0:0:0=50
Mob_PIECEFUL

commented

Comment by Martin.Faester

(colon)

commented

Comment by Martin.Faester

yeah and beside PEACEFUL

commented

Comment by me4502

Err.. Both are incorrect? The only correct one is MOB_PEACEFUL..

Oh, you mean the radius line..
The second one is correct, the first has an extra colon.

commented

Comment by Martin.Faester

thanks.

commented

Comment by Martin.Faester

It seems to make the NP at the mob_friendly sign only