Skip to content

Commit

Permalink
Fix library designs duplicating themselves (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekolis authored Feb 3, 2024
1 parent 25ec84e commit 2f76407
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FrEee/Objects/Vehicles/Design.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2f76407

Please sign in to comment.