mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
SPIGOT-665: Sticky pistons are moving pistons during the event
This commit is contained in:
parent
c4858369b3
commit
82f9df9919
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ public abstract class BlockPistonEvent extends BlockEvent implements Cancellable
|
|||
* @return stickiness of the piston
|
||||
*/
|
||||
public boolean isSticky() {
|
||||
return block.getType() == Material.PISTON_STICKY_BASE;
|
||||
return block.getType() == Material.PISTON_STICKY_BASE || block.getType() == Material.PISTON_MOVING_PIECE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue