Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #16 from diddily/Patch_CompEquippable-fix
Browse files Browse the repository at this point in the history
Update Patch_CompEquippable.cs
  • Loading branch information
Taranchuk authored May 13, 2021
2 parents 5cf2801 + 7db5477 commit 7b9ac43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static class GetVerbsCommands
public static void Postfix(CompEquippable __instance, ref IEnumerable<Command> __result)
{
// Clear gizmos if parent is a shield and isn't off-hand - though the verb will still be usable
var pawn = __instance.PrimaryVerb.CasterPawn;
var pawn = __instance.PrimaryVerb?.CasterPawn;
if (pawn != null && pawn.equipment.Primary != __instance.parent)
__result = __result.Where(g => false);
}
Expand Down

0 comments on commit 7b9ac43

Please sign in to comment.