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 strange placement behavior for non-default Stairs+ nodes #168

Merged
merged 3 commits into from Dec 28, 2020

Conversation

Oblomov
Copy link
Contributor

@Oblomov Oblomov commented Dec 18, 2020

Removing everything from the first underscore blows up when the mod name
has an underscore itself. Solve by extracting the category as the part
of the name that begins after the colon and ends at the first
underscore. As a bonus, this should make it easier to place nodes in the
same category even if they are from different mods.

This should fix #167

@Oblomov
Copy link
Contributor Author

Oblomov commented Dec 18, 2020

Luacheck is failing because of _ being unused? Somebody should fix luacheck 8-)

stairsplus/common.lua Outdated Show resolved Hide resolved
Removing everything from the first underscore blows up when the mod name
has an underscore itself. Solve by extracting the category as the part
of the name that begins after the colon and ends at the first
underscore. As a bonus, this should make it easier to place nodes in the
same category even if they are from different mods.
@BuckarooBanzay
Copy link
Member

This fixed the issues from #167, thanks 👍

@Calinou Calinou added the Bug label Dec 28, 2020
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Thanks!

@Calinou Calinou changed the title Fix: improve category detection Fix strange placement behavior for non-default Stairs+ nodes Dec 28, 2020
@Calinou Calinou merged commit ff7e850 into minetest-mods:master Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

slope placement with non-default nodes results in strange behavior
4 participants