CraftBook 3

CraftBook 3

139k Downloads

java.lang.IllegalArgumentException: n must be positive

LadyCailinBot opened this issue ยท 2 comments

commented

CRAFTBOOK-2400 - Reported by joy

Running build 1739:

20:36:40 [SEVERE] [CraftBook] java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Random.java:300)
at com.sk89q.craftbook.mech.ai.ZombieAIMechanic.onEntityTarget(ZombieAIMechanic.java:33)
at com.sk89q.craftbook.mech.AIMechanic.onEntityTarget(AIMechanic.java:46)
at sun.reflect.GeneratedMethodAccessor311.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:35)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464)
at org.bukkit.craftbukkit.v1_4_R1.event.CraftEventFactory.callEntityTargetEvent(CraftEventFactory.java:471)
at net.minecraft.server.v1_4_R1.PathfinderGoalMeleeAttack.d(PathfinderGoalMeleeAttack.java:59)
at net.minecraft.server.v1_4_R1.PathfinderGoalSelector.a(PathfinderGoalSelector.java:80)
at net.minecraft.server.v1_4_R1.EntityLiving.bl(EntityLiving.java:1505)
at net.minecraft.server.v1_4_R1.EntityLiving.c(EntityLiving.java:1287)
at net.minecraft.server.v1_4_R1.EntityMonster.c(EntityMonster.java:20)
at net.minecraft.server.v1_4_R1.EntityZombie.c(EntityZombie.java:108)
at net.minecraft.server.v1_4_R1.EntityLiving.j_(EntityLiving.java:545)
at net.minecraft.server.v1_4_R1.EntityMonster.j_(EntityMonster.java:24)
at net.minecraft.server.v1_4_R1.EntityZombie.j_(EntityZombie.java:121)
at net.minecraft.server.v1_4_R1.World.tickEntity(World.java:1444)
at net.minecraft.server.v1_4_R1.World.entityJoinedWorld(World.java:1405)
at net.minecraft.server.v1_4_R1.WorldServer.entityJoinedWorld(WorldServer.java:588)
at net.minecraft.server.v1_4_R1.World.playerJoinedWorld(World.java:1395)
at net.minecraft.server.v1_4_R1.World.tickEntities(World.java:1270)
at net.minecraft.server.v1_4_R1.WorldServer.tickEntities(WorldServer.java:479)
at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:567)
at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:481)
at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:416)
at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)

commented

Comment by me4502

Erm... I'll look into this, but this means you have a negative distance to a zombie?

commented

Comment by joy

If it helps, only saw this during games of Mob Arena.