From 0b73e2298031a5fc564d2c3695eb09867db1b052 Mon Sep 17 00:00:00 2001 From: Little White Mouse <45579454+lilwhitemouse@users.noreply.github.com> Date: Wed, 27 Mar 2019 10:09:34 -0400 Subject: [PATCH] Compatibility fix for LWM's Deep Storage Fixes problem where pawn right-clicking on Storage with multiple items in the same cell only has option to select first weapon. --- Source/DualWield/Harmony/FloatMenuMakerMap.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Source/DualWield/Harmony/FloatMenuMakerMap.cs b/Source/DualWield/Harmony/FloatMenuMakerMap.cs index d6f1e35..b37eb3c 100644 --- a/Source/DualWield/Harmony/FloatMenuMakerMap.cs +++ b/Source/DualWield/Harmony/FloatMenuMakerMap.cs @@ -39,14 +39,11 @@ static void Postfix(Vector3 clickPos, Pawn pawn, ref List opts) if (thingList[i].TryGetComp() != null) { equipment = (ThingWithComps)thingList[i]; - break; + FloatMenuOption equipOffHandOption = GetEquipOffHandOption(pawn, equipment); + opts.Add(equipOffHandOption); } } - if (equipment != null) - { - FloatMenuOption equipOffHandOption = GetEquipOffHandOption(pawn, equipment); - opts.Add(equipOffHandOption); - } + } } }