FallenMoonNetwork / CanaryRecode

CanaryMod Recode Repository
Other
11 stars 44 forks source link

getItemHeld() == null? #42

Closed SirPsp closed 11 years ago

SirPsp commented 11 years ago

Just checking if the player's held item is null throws an error when it is. I swing my arm with no item and I get this error http://pastebin.com/kQZa6kJL

The line in my code is simply: if (player.getItemHeld() == null){