Limit hopper to valid directions. Fixes BUKKIT-3940

This commit is contained in:
Travis Watkins committed 2013-03-31 13:29:13 -05:00
1 parent 06ebe6b705
commit af964c8331
1 file changed
+1 -1
@@ -145,7 +145,7 @@ public class BlockHopper extends BlockContainer {
}
public static int c(int i) {
return i & 7;
return Math.min(i & 7, 5); // CraftBukkit - Fix AIOOBE in callers
}
public static boolean d(int i) {