Skip to content

Commit

Permalink
fixed port issues
Browse files Browse the repository at this point in the history
  • Loading branch information
2piradians committed May 4, 2017
1 parent e726201 commit d7d5a0d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ else if (this.isArrow(player.getHeldItem(EnumHand.MAIN_HAND)))
}
}

private boolean isArrow(ItemStack stack) {
return stack.getItem() instanceof ItemArrow;
private boolean isArrow(@Nullable ItemStack stack) {
return stack != null && stack.getItem() instanceof ItemArrow;
}

/**Called when the player stops using an Item (stops holding the right mouse button).*/
Expand Down

0 comments on commit d7d5a0d

Please sign in to comment.