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

Get rid of recursive call in default.dig_up #3133

Merged

Conversation

Emojigit
Copy link
Contributor

Fixes #3075

This PR fixes the recursive calling of default.dig_up and adds a parameter for a maximum number of nodes searched.

This PR is ready for review.

mods/default/init.lua Outdated Show resolved Hide resolved
mods/default/functions.lua Outdated Show resolved Hide resolved
mods/default/functions.lua Outdated Show resolved Hide resolved
mods/default/functions.lua Outdated Show resolved Hide resolved
@Emojigit Emojigit requested a review from sfan5 June 17, 2024 10:53
@Emojigit
Copy link
Contributor Author

@sfan5 Change applied in 0e79158. Ready for review again.

mods/default/init.lua Outdated Show resolved Hide resolved
@Emojigit Emojigit requested a review from sfan5 June 17, 2024 22:32
Copy link
Member

@sfan5 sfan5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works

Copy link
Member

@SmallJoker SmallJoker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works. Tested with print in minetest.dig_up while digging papyrus. Height limit works too.

mods/default/functions.lua Show resolved Hide resolved
mods/default/functions.lua Outdated Show resolved Hide resolved
@Emojigit Emojigit requested a review from SmallJoker June 22, 2024 06:45
Emojigit and others added 2 commits June 25, 2024 18:56
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
@Emojigit Emojigit requested a review from appgurueu June 25, 2024 11:08
mods/default/functions.lua Outdated Show resolved Hide resolved
mods/default/functions.lua Outdated Show resolved Hide resolved
@Emojigit Emojigit requested a review from appgurueu August 3, 2024 23:29
mods/default/functions.lua Outdated Show resolved Hide resolved
mods/default/functions.lua Outdated Show resolved Hide resolved
@Emojigit

This comment was marked as resolved.

@Emojigit Emojigit marked this pull request as draft August 31, 2024 23:12
@Emojigit Emojigit marked this pull request as ready for review August 31, 2024 23:24
Copy link
Member

@sfan5 sfan5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

mods/default/functions.lua Show resolved Hide resolved
Co-authored-by: sfan5 <sfan5@live.de>
@sfan5 sfan5 merged commit b23c44d into minetest:master Sep 8, 2024
2 checks passed
MoNTE48 pushed a commit to MoNTE48/minetest_game that referenced this pull request Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stack overflow due to default.dig_up
4 participants