ShadowDog007 / MobManager

MobManager will stop mobs spawning at unnecessarily low depths and also when mobs are too far away from the player (Minecraft)
3 stars 10 forks source link

Error w/ v2.3 #1

Closed stvncao5 closed 11 years ago

stvncao5 commented 11 years ago

Whenever an entity tries to spawn, this occurs: 2013-03-03 12:15:15 [SEVERE] Could not pass event CreatureSpawnEvent to MobManager v2.3 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_4_R1.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:227) at net.minecraft.server.v1_4_R1.World.addEntity(World.java:901) at org.bukkit.craftbukkit.v1_4_R1.CraftWorld.spawn(CraftWorld.java:1009) at org.bukkit.craftbukkit.v1_4_R1.CraftWorld.spawn(CraftWorld.java:791) at org.bukkit.craftbukkit.v1_4_R1.CraftWorld.spawnEntity(CraftWorld.java:338) at me.ryanhamshire.ExtraHardMode.event.EntityEventHandler.onEntitySpawn(EntityEventHandler.java:525) at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.v1_4_R1.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventFactory.java:227) at net.minecraft.server.v1_4_R1.World.addEntity(World.java:901) at net.minecraft.server.v1_4_R1.SpawnerCreature.spawnEntities(SpawnerCreature.java:159) at net.minecraft.server.v1_4_R1.WorldServer.doTick(WorldServer.java:157) at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:572) at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.NullPointerException at com.forgenz.mobmanager.abilities.listeners.AbilitiesMobListener.rates(AbilitiesMobListener.java:64) at sun.reflect.GeneratedMethodAccessor213.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 25 more

My guess (from looking at the error), is that it might have something to do with ExtraHardMode, particularly in how ExtraHardMode handles spawning differently from MobManager. One solution would be to offer compatibility for ExtraHardMode's spawning system, like you did for EpicBossRecoded.

However, this is just a guess at the source of the problem. This error started happening as soon as I had the latest version of both plugins. I'll test MobManager on v2.2b to see if I can replicate these results.

stvncao5 commented 11 years ago

v2.2b works fine, meaning that it's probably something to do with the v2.3.

ShadowDog007 commented 11 years ago

Yeah, I changed a few things around. :S I don't see how this would happen at all. But I know how I can fix it.

Will compile a fixed build when I get home.

ShadowDog007 commented 11 years ago

Should be fixed. I could not reproduce the error with v2.3, but with v2.3a there should be absolutely NO way the same error can occur.

You can get it here http://dev.bukkit.org/server-mods/mobmanager/files/35-mob-manager-v2-3a/

stvncao5 commented 11 years ago

Yep, it appears to have fixed it. Thanks for the plugin! :)