hopeful fix for blocks not being pistons when they should be

This commit is contained in:
Tahg
2011-09-30 03:27:36 -04:00
parent b1451f58cb
commit 4155a42406
3 changed files with 12 additions and 7 deletions

View File

@@ -5,13 +5,14 @@ import java.util.Collections;
import java.util.List;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
public class BlockPistonExtendEvent extends BlockPistonEvent {
private int length;
private List<Block> blocks;
public BlockPistonExtendEvent(Block block, int length) {
super(Type.BLOCK_PISTON_EXTEND, block);
public BlockPistonExtendEvent(Block block, int length, BlockFace direction) {
super(Type.BLOCK_PISTON_EXTEND, block, direction);
this.length = length;
}