NerdNu / MobLimiter

Actively limit mobs per chunk
MIT License
14 stars 12 forks source link

Compatibility patch with 1.4.7 R1.0? #5

Closed riddle closed 11 years ago

riddle commented 11 years ago

While the server is running, there is a stream of errors:

13:01:07 [SEVERE] Could not pass event ChunkUnloadEvent to MobLimiter v1.0
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.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:35)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    at net.minecraft.server.v1_4_R1.ChunkProviderServer.unloadChunks(ChunkProviderServer.java:295)
    at net.minecraft.server.v1_4_R1.WorldServer.doTick(WorldServer.java:161)
    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.NoSuchMethodError: net.minecraft.server.v1_4_R1.Entity.getBukkitEntity()Lorg/bukkit/entity/Entity;
    at nu.nerd.moblimiter.MobLimiter.removeMobs(MobLimiter.java:90)
    at nu.nerd.moblimiter.MobLimiter.onChunkUnload(MobLimiter.java:55)
    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
    ... 11 more

And on server stop there’s this:

13:03:56 [INFO] [MobLimiter] Disabling MobLimiter v1.0
13:03:56 [SEVERE] Error occurred while disabling MobLimiter v1.0 (Is it up to date?)
java.lang.NoSuchMethodError: net.minecraft.server.v1_4_R1.Entity.getBukkitEntity()Lorg/bukkit/entity/Entity;
    at nu.nerd.moblimiter.MobLimiter.removeMobs(MobLimiter.java:90)
    at nu.nerd.moblimiter.MobLimiter.onDisable(MobLimiter.java:49)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:219)
    at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:481)
    at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:400)
    at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:393)
    at org.bukkit.craftbukkit.v1_4_R1.CraftServer.disablePlugins(CraftServer.java:277)
    at net.minecraft.server.v1_4_R1.MinecraftServer.stop(MinecraftServer.java:351)
    at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:458)
    at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
totemo commented 11 years ago

The plugin will be pure Bukkit API from now on. No NMS dependencies.