geforkt von Mirrors/Paper
SPIGOT-665: Sticky pistons are moving pistons during the event
By: Thinkofdeath <thinkofdeath@spigotmc.org>
Dieser Commit ist enthalten in:
Ursprung
ad77edbd4b
Commit
0693d6c758
@ -31,7 +31,7 @@ public abstract class BlockPistonEvent extends BlockEvent implements Cancellable
|
|||||||
* @return stickiness of the piston
|
* @return stickiness of the piston
|
||||||
*/
|
*/
|
||||||
public boolean isSticky() {
|
public boolean isSticky() {
|
||||||
return block.getType() == Material.PISTON_STICKY_BASE;
|
return block.getType() == Material.PISTON_STICKY_BASE || block.getType() == Material.PISTON_MOVING_PIECE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren