mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 00:47:32 +00:00
Fix unsafe getCompoundTag call in PotionLauncher.getItemUseAction
* See squeek502/AppleCore#9
This commit is contained in:
1 parent
c46e6e0bc2
commit
0d388bef52
1 file changed
+1
-1
@@ -86,7 +86,7 @@ public class PotionLauncher extends Item
|
||||
@Override
|
||||
public EnumAction getItemUseAction (ItemStack stack)
|
||||
{
|
||||
if (!stack.getTagCompound().getCompoundTag("InfiTool").getBoolean("Loaded"))
|
||||
if (stack != null && stack.hasTagCompound() && !stack.getTagCompound().getCompoundTag("InfiTool").getBoolean("Loaded"))
|
||||
return EnumAction.bow;
|
||||
else
|
||||
return EnumAction.none;
|
||||
|
||||
Reference in new issue
Block a user