Fix bugs with pistons

This commit improves piston tracking and fixes a couple of bugs with
block tracking.

Fixes #2043
This commit is contained in:
TfT_02
2014-06-15 14:22:32 +02:00
parent 906609696b
commit 3a8f45a04d
5 changed files with 70 additions and 14 deletions

View File

@ -308,6 +308,12 @@ public final class BlockUtils {
return type == Repair.anvilMaterial || type == Salvage.anvilMaterial;
}
public static boolean isPistonPiece(BlockState blockState) {
Material type = blockState.getType();
return type == Material.PISTON_MOVING_PIECE || type == Material.AIR;
}
/**
* Get a HashSet containing every transparent block
*