From 2f76407d1fa0e5a748ed6cacdb96482ff219337c Mon Sep 17 00:00:00 2001 From: Ed Kolis Date: Sat, 3 Feb 2024 17:47:58 -0500 Subject: [PATCH] Fix library designs duplicating themselves (#284) --- FrEee/Objects/Vehicles/Design.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FrEee/Objects/Vehicles/Design.cs b/FrEee/Objects/Vehicles/Design.cs index 16a6d2a9..31a78048 100644 --- a/FrEee/Objects/Vehicles/Design.cs +++ b/FrEee/Objects/Vehicles/Design.cs @@ -745,15 +745,15 @@ public override bool Equals(object? obj) { if (d.BaseName != BaseName) return false; - if (d.Hull != Hull) + if (d.Hull.ModID != Hull.ModID) return false; if (d.Components.Count != Components.Count) return false; for (var i = 0; i < Components.Count; i++) { - if (d.Components[i].ComponentTemplate != Components[i].ComponentTemplate) + if (d.Components[i].ComponentTemplate.ModID != Components[i].ComponentTemplate.ModID) return false; - if (d.Components[i].Mount != Components[i].Mount) + if (d.Components[i].Mount?.ModID != Components[i].Mount?.ModID) return false; } return true;