Skip to content

replace mesecon.on_rotate_horiz with mesecon.on_rotate and paramtype2 = "4dir" #705

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

Merged
merged 3 commits into from
May 17, 2025

Conversation

The4codeblocks
Copy link
Contributor

function left for compatibility

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 by creating a circle using mesecons_extrawires:corner_off + screwdriver. After applying the PR (and thus changing the paramtype2), the node appearance is still the same.

Will merge in a few days unless there are objections.

@sfan5
Copy link
Member

sfan5 commented May 3, 2025

Compatibility could be a concern as Mesecons technically still supports MT 5.0 but 🤷

@SmallJoker
Copy link
Member

SmallJoker commented May 4, 2025

Compatibility could be a concern

That is indeed a good argument. In this case, the PR also has to require 5.7.0 or newer to prevent users on ancient builds from running into issues.

  1. https://github.com/minetest-mods/mesecons/blob/master/modpack.conf#L3
  2. Maybe a helpful assert line in mesecons/init.lua: assert(core.dir_to_fourdir ~= nil, "Your Luanti/Minetest installation is too old. Please update.")

@The4codeblocks
Copy link
Contributor Author

  1. https://github.com/minetest-mods/mesecons/blob/master/modpack.conf#L3

done, also where do you get version spec?

@SmallJoker
Copy link
Member

done, also where do you get version spec?

What do you mean by that? To find out the minimal version? I do that by checking versions of https://github.com/minetest/minetest/blob/5.7.0/doc/lua_api.txt?plain=1 - or lua_api.md - by replacing the 5.7.0 part and checking whether there's any mention of 4dir (in this case). Unfortunately the web version refuses to show a git blame and my shallow copy of the repository does not reach that far back.

@SmallJoker SmallJoker merged commit f565a3f into minetest-mods:master May 17, 2025
5 checks passed
@SmallJoker
Copy link
Member

Accidentally used Rebase & Merge. Force-pushed as one with improved commit description as 2707254.

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.

3 participants