Prevent possible crash in bows

This commit is contained in:
Bernhard Bonigl committed 2014-12-27 22:19:36 +01:00
1 parent 4f97051249
commit 34e5f90edd
1 file changed
+3
@@ -88,6 +88,9 @@ public abstract class ProjectileWeapon extends ToolCore implements IAccuracy, IW
/* Windup */
public int getWindupTime(ItemStack itemStack) {
if(!itemStack.hasTagCompound())
return 1;
NBTTagCompound toolTag = itemStack.getTagCompound().getCompoundTag("InfiTool");
return toolTag.getInteger("DrawSpeed");
}