Skip to content

Conversation

@Denneisk
Copy link
Member

@Denneisk Denneisk commented Sep 6, 2025

Adds an explicit nil check. Would call nil:IsWorld otherwise.

@Astralcircle
Copy link
Contributor

Astralcircle commented Sep 6, 2025

Isn't passing nil already an issue? Maybe some function returns nil? I don't think it's a tostring issue

@Denneisk
Copy link
Member Author

Denneisk commented Sep 6, 2025

If it's not mitigating bad legacy code (nil used to be used in some entity type returns), it's at least a minor optimization.

@Astralcircle
Copy link
Contributor

Astralcircle commented Sep 6, 2025

Isn't this a problem with this legacy code then? Do you have code that reproduces this error?
ok i guess....

@Denneisk
Copy link
Member Author

Denneisk commented Sep 6, 2025

Zero value for entity type is still nil for some reason, too.

@Astralcircle Astralcircle merged commit ebe282d into wiremod:master Sep 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants