CommandHelper

CommandHelper

46.5k Downloads

piston event cancelling does not work

LadyCailinBot opened this issue ยท 1 comments

commented

CMDHELPER-3123 - Reported by phanaticd

with this code

bind(piston_extend, null, null, @e, cancel())
bind(piston_retract, null, null, @e, cancel())

pistons still extend and retract if you spam a lever next to a piston. most of the time it will not move, but every few seconds it will in fact push a block

using build 3035

commented

Comment by PseudoKnight

There's a workaround in the listener to prevent Bukkit from firing multiple CH events per extend/retract. Of course this means some will slip through. So it's not a good CH event to try canceling. It might need to be re-evaluated.

https://github.com/EngineHub/CommandHelper/blob/master/src/main/java/com/laytonsmith/abstraction/bukkit/events/drivers/BukkitBlockListener.java#L27