Files
wwdpublic/Content.Shared/Contests/ContestsSystem.cs
VMSolidus ec78014145 Fix HealthContest Crash (#954)
# Description

Apparently _mobThreshold.TryGetThresholdForState() fucking crashes if
you hand it a mob that doesn't have a MobStateComponent, even though it
optionally accepts no MobStateComponent at all as one of its inputs.
Easy solution for this is to just pre-emptively TryComp for the
MobStateComponent and then pass it in explicitly, but I also hate this
because TryGetThresholdForState shouldn't be crashing if you hand it a
mob without a MobStateComponent... I hate Resolve() so much for this
behavior.

# Changelog

🆑
- fix: Fix a crash related to Luminous Entities.
2024-10-19 13:21:42 +07:00

24 KiB