Limit hopper to valid directions. Fixes BUKKIT-3940

This commit is contained in:
Travis Watkins 2013-03-31 13:27:04 -05:00
parent 06ebe6b705
commit af964c8331

View File

@ -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) {