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 crash caused by unknown nodes #27

Merged
merged 2 commits into from
Nov 16, 2024

Conversation

a-tour-ist
Copy link
Contributor

there are missing nil checks for minetest.registered_nodes[something]

If you look closely, you can see that there is one place left:

local test_node_def = minetest.registered_nodes[test_node.name]
if test_node_def.buildable_to then

As far as I can see, this one should already be covered by the check on L217.
But I can add one for good measure if wanted.

gate_functions.lua Outdated Show resolved Hide resolved
Co-authored-by: SmallJoker <[email protected]>
@SmallJoker SmallJoker merged commit eedb376 into minetest-mods:master Nov 16, 2024
1 check passed
@a-tour-ist a-tour-ist mentioned this pull request Nov 22, 2024
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