-
Notifications
You must be signed in to change notification settings - Fork 192
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
Modular Computer System #1556
Modular Computer System #1556
Conversation
if (args.Container.ID != component.DiskSlot) | ||
return; | ||
|
||
UpdateComputer(new Entity<ModularComputerComponent>(uid, component)); |
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.
You end up doing the same checks for UpdateComputer as you do below. You could easily remove those by putting this later.
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.
Wait, that works? If the function encounters a check like that, returning would exit out of InsertDisk?
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.
Yeah, but you do the same checks for InsertDisk as you do for UpdateComputer, just remove the checks on UpdateComputer and put this lower.
D: ^ The face of someone who is afraid of localizations |
Signed-off-by: sleepyyapril <[email protected]>
Signed-off-by: sleepyyapril <[email protected]>
Should be good now. I hope. Probably. |
Co-authored-by: VMSolidus <[email protected]> Signed-off-by: Eris <[email protected]>
Description
Ports the Modular Computer system from Arcadis. I'll document it more later, for now just look to the provided .yml for reference.
TODO
(Not) Media
No.
Changelog
🆑 Eris