From ce6ea3fcc190f74bc6b5b7b8ac70ec7fe9753b2c Mon Sep 17 00:00:00 2001 From: Tyfon <29051038+tyfon7@users.noreply.github.com> Date: Sat, 24 Aug 2024 12:04:21 -0700 Subject: [PATCH] Handle parentless weapon (handbook) --- Patches/WeaponModdingPatches.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Patches/WeaponModdingPatches.cs b/Patches/WeaponModdingPatches.cs index 5f88d07..f7e5f4b 100644 --- a/Patches/WeaponModdingPatches.cs +++ b/Patches/WeaponModdingPatches.cs @@ -487,7 +487,7 @@ public static class WeaponModdingPatches } Item rootItem = itemAddress.GetRootItemNotEquipment(); - if (rootItem is not Weapon weapon) + if (rootItem is not Weapon weapon || weapon.CurrentAddress == null) { return true; }