Fix NPE in Methods

http://pastebin.com/9J0qAWTh
This commit is contained in:
jack lin 2014-07-18 18:01:00 +12:00
parent a74ef765b8
commit d091ab9765

View file

@ -610,7 +610,8 @@ public class Methods {
public static String getBoundAbility(Player player) {
BendingPlayer bPlayer = getBendingPlayer(player.getName());
if (bPlayer == null) return null;
int slot = player.getInventory().getHeldItemSlot() + 1;
return bPlayer.abilities.get(slot);
}