Add setting to force mag reload in-place

This commit is contained in:
Tyfon
2024-07-21 14:10:00 -07:00
parent c52435ee37
commit 8046557121
2 changed files with 13 additions and 3 deletions

View File

@@ -112,8 +112,8 @@ public static class ReloadInPlacePatches
[PatchPrefix]
public static bool Prefix(Player.FirearmController __instance, MagazineClass magazine, ItemAddressClass gridItemAddress)
{
// If gridItemAddress isn't null, it already found a place for the current mag, so let it run
if (gridItemAddress != null || !Settings.SwapMags.Value)
// If gridItemAddress isn't null, it already found a place for the current mag, so let it run (unless always swap is enabled)
if (!Settings.SwapMags.Value || (gridItemAddress != null && !Settings.AlwaysSwapMags.Value))
{
return true;
}