Get inventory item using Bukkit method. This way, if there's a problem with invalid indices it's a bukkit issue.

This commit is contained in:
zml2008 2013-03-17 19:54:02 -07:00
parent f8a976d339
commit e5eba603ec

View File

@ -188,7 +188,7 @@ public class PlayerListener extends ModifyworldListener {
return; return;
} }
ItemStack take = event.getInventory().getItem(event.getSlot()); ItemStack take = event.getCurrentItem();
String action; String action;
ItemStack item; ItemStack item;