Fixing crash when InventoryMoveItemEvent is cancelled. 

Cauldron Server crashes when the TileEntityHopper Dispense InventoryMoveItemEvent  is cancelled by a plugin (eg. a chest protection).
This is caused by using the wrong variable ( i is the direction ). This Bug does not exist in CraftBukkit. I guess a simple typo while merging.