on break herb (31 or 175) errors in log
LadyCailinBot opened this issue ยท 3 comments
CMDHELPER-3143 - Reported by sat
on block break 31 or 175 i have this in log :
[14:26:44 ERROR]: Could not pass event BlockBreakEvent to CommandHelper v3.3.2-SNAPSHOT.3164-
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
at net.minecraft.server.v1_11_R1.PlayerInteractManager.breakBlock(PlayerInteractManager.java:291) [spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
at net.minecraft.server.v1_11_R1.PlayerInteractManager.a(PlayerInteractManager.java:193) [spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:821) [spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
at net.minecraft.server.v1_11_R1.PacketPlayInBlockDig.a(SourceFile:40) [spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
at net.minecraft.server.v1_11_R1.PacketPlayInBlockDig.a(SourceFile:10) [spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_111]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_111]
at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:739) [spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:675) [spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:574) [spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
Caused by: java.lang.ClassCastException: com.laytonsmith.core.constructs.CNull cannot be cast to com.laytonsmith.core.constructs.CArray
at com.laytonsmith.core.events.drivers.BlockEvents$block_break.evaluate(BlockEvents.java:337) ~[?:?]
at com.laytonsmith.core.events.EventUtils.FireListeners(EventUtils.java:252) ~[?:?]
at com.laytonsmith.core.events.EventUtils.TriggerListener(EventUtils.java:240) ~[?:?]
at com.laytonsmith.abstraction.bukkit.events.drivers.BukkitBlockListener.onBlockBreak(BukkitBlockListener.java:81) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot-1.11.jar:git-Spigot-bfe6acd-a64b99c]
... 17 more
i use bind(block_break, null, null, @event,
in main.ms for any view on block brek, but not this item.
Comment by PseudoKnight
It looks like some Minecraft blocks now drop air for some reason. Either that needs to be changed or CraftBlock needs to check for air in addition to null.
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java#468
Comment by PseudoKnight
Looks like you reported this on JIRA and it was fixed by md5 promptly. :)