summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorTahg <tahgtahv@gmail.com>2012-01-24 18:47:29 -0500
committerTahg <tahgtahv@gmail.com>2012-01-24 21:42:45 -0500
commit989acd0afbfc2e484bfa16be6e5d1b74118ee87f (patch)
tree6171bbc94ec85586baa1bff5810a30dc32de28e0 /src/main/java
parentb416dd337f46a20aaf8ff97b22c97fe99e90e4ff (diff)
downloadcraftbukkit-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.java1
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;
}