diff options
author | Tahg <tahgtahv@gmail.com> | 2012-01-24 18:47:29 -0500 |
---|---|---|
committer | Tahg <tahgtahv@gmail.com> | 2012-01-24 21:42:45 -0500 |
commit | 989acd0afbfc2e484bfa16be6e5d1b74118ee87f (patch) | |
tree | 6171bbc94ec85586baa1bff5810a30dc32de28e0 /src/main/java | |
parent | b416dd337f46a20aaf8ff97b22c97fe99e90e4ff (diff) | |
download | craftbukkit-989acd0afbfc2e484bfa16be6e5d1b74118ee87f.tar craftbukkit-989acd0afbfc2e484bfa16be6e5d1b74118ee87f.tar.gz craftbukkit-989acd0afbfc2e484bfa16be6e5d1b74118ee87f.tar.lz craftbukkit-989acd0afbfc2e484bfa16be6e5d1b74118ee87f.tar.xz craftbukkit-989acd0afbfc2e484bfa16be6e5d1b74118ee87f.zip |
Fix invalid data in pistons
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; } |