diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockPiston.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/BlockPiston.java b/src/main/java/net/minecraft/server/BlockPiston.java index 17ba1e6f..d08f4274 100644 --- a/src/main/java/net/minecraft/server/BlockPiston.java +++ b/src/main/java/net/minecraft/server/BlockPiston.java @@ -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; } |