Fix invalid data in pistons

This commit is contained in:
Tahg 2012-01-24 18:47:29 -05:00
parent b416dd337f
commit 989acd0afb

View File

@ -218,6 +218,7 @@ public class BlockPiston extends Block {
}
public static int d(int i) {
if ((i & 7) >= Facing.a.length) return 0; // CraftBukkit - check for AIOOB on piston data
return i & 7;
}