Skip to content

Commit

Permalink
Fix a case where tank autofill choices didn't get updated
Browse files Browse the repository at this point in the history
  • Loading branch information
siimav committed Jan 19, 2025
1 parent 4b212cc commit 4436fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Tanks/EditorPartSetMaintainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private void UpdateCrossfeedSets(ShipConstruct ship)
private void OnPartAttach(GameEvents.HostTargetAction<Part, Part> hostTarget)
{
// Attaching: host is the incoming part
if (hostTarget.target?.ship == EditorLogic.fetch.ship)
if (hostTarget.target?.localRoot?.ship == EditorLogic.fetch.ship)
ScheduleUpdateIfNeeded(hostTarget, isAttachEvent: true);
}

Expand Down

0 comments on commit 4436fc2

Please sign in to comment.