mung3r / MobRider

A mod for riding and controlling mobs
http://forums.bukkit.org/threads/47709
GNU Lesser General Public License v3.0
6 stars 2 forks source link

Task #44 for MobRider v0.47.1-b115 generated an exception java.lang.NullPointerException #40

Open ghost opened 12 years ago

ghost commented 12 years ago

I have Towny on my server. I get a huge number of these in the server.log when I tried to make a mob go to a town. It was going but got stuck trying to jump up a block of grass for some reason. Maybe they have to fly temporarily or something. I don't know.

[WARNING] [MobRider] Task #44 for MobRider v0.47.1-b115 generated an exception
java.lang.NullPointerException
    at com.edwardhand.mobrider.goals.LocationGoal.isWithinRange(LocationGoal.java:46)
    at com.edwardhand.mobrider.goals.TownyGoal.update(TownyGoal.java:33)
    at com.edwardhand.mobrider.goals.GoalManager.update(GoalManager.java:61)
    at com.edwardhand.mobrider.rider.RiderManager.run(RiderManager.java:67)
    at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:52)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:321)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:509)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
mung3r commented 12 years ago

Will look into this - thanks for the report.

leponder commented 11 years ago

I have same problem.

mung3r commented 11 years ago

@leponder, do you also have a stack trace that you can post? Thanks!

leponder commented 11 years ago

http://pastebin.com/izxfiKk2

mung3r commented 11 years ago

@leponder, you have a different issue that has been resolved in issue #56. Take a look at that for the solution.

leponder commented 11 years ago

Thank you, seems to work fine now. Was also wondering how to configure the no mob egg drop on dismount. I looked in config but I didn't see setting for it.

leponder commented 11 years ago

Never mind about mob egg, I just realized it's a perm node and I'm an OP.