FallenMoonNetwork / CanaryMod

Server administration mod and API for Minecraft beta multiplayer server
http://canarymod.net
GNU Lesser General Public License v3.0
20 stars 14 forks source link

ClassCastException in LIQUID_DESTROY hook #158

Closed nosefish closed 10 years ago

nosefish commented 10 years ago
2013-08-04 12:17:14 [SEVERE] Exception while calling plugin function in 'class FS_LiquidListener' while calling hook: 'LIQUID_DESTROY'.
java.lang.ClassCastException: OBlockDropper cannot be cast to java.lang.Integer
        at PluginLoader.callHook(PluginLoader.java:1127)
        at OBlockFlowing.o(OBlockFlowing.java:301)
        at OBlockFlowing.a(OBlockFlowing.java:93)
        at OWorldServer.g(OWorldServer.java:268)
        at OWorldServer.b(OWorldServer.java:103)
        at OMinecraftServer.t(OMinecraftServer.java:455)
        at ODedicatedServer.t(SourceFile:262)
        at OMinecraftServer.s(OMinecraftServer.java:392)
        at OMinecraftServer.run(OMinecraftServer.java:331)
        at OThreadMinecraftServer.run(SourceFile:582)
ayyron-dev commented 10 years ago

Is this cast in your choose out our s?

nosefish commented 10 years ago

My code doesn't cast anything. It just reads the block types from the hook and denies destruction of certain blocks. Worked fine in 1.5.2. My code: http://pastebin.com/FsQdQD16

ayyron-dev commented 10 years ago

Probably am update error.I'll be home later to fix it.