Skip to content

Commit

Permalink
Fix initially dormant mech ammo beacons
Browse files Browse the repository at this point in the history
65ff968 mistakenly turned off mech ammo beacons for clusters that start off dormant.
Fix the logic so that beacons in such clusters correctly drop ammo once the cluster is awake and other conditions are met.
  • Loading branch information
mszabo-wikia committed Oct 24, 2024
1 parent 4462150 commit 0793a98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public bool IsActive
return false;
}

if (parent.TryGetComp<CompCanBeDormant>()?.Awake ?? false)
if (!(parent.TryGetComp<CompCanBeDormant>()?.Awake ?? true))
{
return false;
}
Expand Down

0 comments on commit 0793a98

Please sign in to comment.