mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 11:59:14 +00:00
Fix a possible crash when minecraft derps its item-in-use for players
This commit is contained in:
1 parent
d1f86adb58
commit
59553174f6
1 file changed
+1
-1
@@ -92,7 +92,7 @@ public abstract class ProjectileWeapon extends ToolCore implements IAccuracy, IW
|
||||
|
||||
/* Windup */
|
||||
public int getWindupTime(ItemStack itemStack) {
|
||||
if(!itemStack.hasTagCompound())
|
||||
if(itemStack == null || !itemStack.hasTagCompound())
|
||||
return 1;
|
||||
|
||||
NBTTagCompound toolTag = itemStack.getTagCompound().getCompoundTag("InfiTool");
|
||||
|
||||
Reference in new issue
Block a user