Skip to content

Commit

Permalink
Prevent possible crash in bows
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Dec 27, 2014
1 parent 4f97051 commit 34e5f90
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -88,6 +88,9 @@ public float getAccuracy(ItemStack itemStack, int time)

/* Windup */
public int getWindupTime(ItemStack itemStack) {
if(!itemStack.hasTagCompound())
return 1;

NBTTagCompound toolTag = itemStack.getTagCompound().getCompoundTag("InfiTool");
return toolTag.getInteger("DrawSpeed");
}
Expand Down

0 comments on commit 34e5f90

Please sign in to comment.