Limit hopper to valid directions. Fixes BUKKIT-3940