diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-03-09 22:28:36 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-03-09 22:28:36 +0000 |
commit | 82f9df99196967fd21216fdc211f0e2ec3255ffd (patch) | |
tree | 13320b44644d18da37b383cff8bc85d46a32dfb9 | |
parent | c4858369b3ff4cc3702f86ac19401c25020a7406 (diff) | |
download | bukkit-82f9df99196967fd21216fdc211f0e2ec3255ffd.tar bukkit-82f9df99196967fd21216fdc211f0e2ec3255ffd.tar.gz bukkit-82f9df99196967fd21216fdc211f0e2ec3255ffd.tar.lz bukkit-82f9df99196967fd21216fdc211f0e2ec3255ffd.tar.xz bukkit-82f9df99196967fd21216fdc211f0e2ec3255ffd.zip |
SPIGOT-665: Sticky pistons are moving pistons during the event
-rw-r--r-- | src/main/java/org/bukkit/event/block/BlockPistonEvent.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/event/block/BlockPistonEvent.java b/src/main/java/org/bukkit/event/block/BlockPistonEvent.java index b89006f8..074d71ca 100644 --- a/src/main/java/org/bukkit/event/block/BlockPistonEvent.java +++ b/src/main/java/org/bukkit/event/block/BlockPistonEvent.java @@ -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; } /** |