-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix fabricator crafting sound not playing for remote players #2598
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
base: master
Are you sure you want to change the base?
Fix fabricator crafting sound not playing for remote players #2598
Conversation
NitroxClient/GameLogic/Spawning/Metadata/Processor/CrafterMetadataProcessor.cs
Outdated
Show resolved
Hide resolved
| Base parentBase = gameObject.GetComponentInParent<Base>(); | ||
| if (parentBase) | ||
| { | ||
| foreach (GhostCrafter crafter in parentBase.GetComponentsInChildren<GhostCrafter>(true)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tornac1234 Is there a better way to find the ghostcrafter in a base?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Supposedly there's a list of ghosts linked to a base (Base.ghosts) but I'm not sure if crafters are added to it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Supposedly there's a list of ghosts linked to a base (Base.ghosts) but I'm not sure if crafters are added to it
checked Base.ghosts its a List for construction ghosts, not crafters GhostCrafter extends Crafter not BaseGhost so we need to use GetComponentsInChildren here
Jannify
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM CW
Fixes #2434