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 for error in lambda for tracking collisions + safe external lambda errors. #3136

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

DerelictDrone
Copy link
Member

@DerelictDrone DerelictDrone commented Sep 9, 2024

Adds UnsafeExtCall and ExtCall functions to the lambda type.
(UnsafeExtCall is "Unsafe" because it doesn't check args, it mimicks UnsafeCall)

These will pcall the lambda function and instead of throwing (which will trigger a lua error) will instead return nil and error the E2 chip.

Fixes collisions no longer being tracked after having an error occur in the lambda's callback, now properly produces errors on chip.
image

@DerelictDrone DerelictDrone merged commit 1dbd2bd into wiremod:master Sep 13, 2024
1 check failed
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