Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Self-Aware Crashing Client #1247

Merged

Conversation

angelofallars
Copy link
Member

Description

Quick fix to prevent the Self-Aware trait from crashing the client of a player when examining their character's health.

HealthExaminableSystem.CreateMarkupSelfAware attempts to access the AnalyzableTypes and DetectableGroups data fields from SelfAwareComponent, but since they are only initialized in the server and null in the client, the client crashes. I believe this could be related to the recent trait overhauls, but not sure. I just fixed it by adding AutoNetworkedField to those fields to automatically propagate the initialized values. Other traits might have a similar bug to this.

Changelog

🆑 Skubman

  • fix: Examining yourself with the Self-Aware trait will no longer crash your game client.

@github-actions github-actions bot added Changes: C# Changes any cs files Changes: YML Changes any yml files labels Nov 18, 2024
@VMSolidus VMSolidus merged commit aec89a5 into Simple-Station:master Nov 18, 2024
10 of 11 checks passed
sleepyyapril pushed a commit to sleepyyapril/Einstein-Engines that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: C# Changes any cs files Changes: YML Changes any yml files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants