mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Prevent possible crash in bows
This commit is contained in:
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");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user