Always use item in Main hand for Cauldron

Fixes #130
This commit is contained in:
Sn0wStorm
2016-06-17 22:09:04 +02:00
parent 98394b14b4
commit b3a5013a7f
3 changed files with 34 additions and 6 deletions
+9
View File
@@ -642,6 +642,15 @@ 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);
}