Also check Off hand for ingredients

Fixes #132
This commit is contained in:
Sn0wStorm
2016-06-20 23:30:20 +02:00
parent b3a5013a7f
commit dfe8e09638
2 changed files with 72 additions and 47 deletions
-9
View File
@@ -642,15 +642,6 @@ public class P extends JavaPlugin {
// Utility
@SuppressWarnings("deprecation")
public void setHand(Player player, ItemStack item) {
if (P.use1_9) {
player.getInventory().setItemInMainHand(item);
} else {
player.setItemInHand(item);
}
}
public int parseInt(String string) {
return NumberUtils.toInt(string, 0);
}