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 typo in wieldview #56

Merged
merged 3 commits into from
Jun 26, 2021
Merged

Fix typo in wieldview #56

merged 3 commits into from
Jun 26, 2021

Conversation

bell07
Copy link

@bell07 bell07 commented Jun 26, 2021

causing #55

@bell07
Copy link
Author

bell07 commented Jun 26, 2021

Note: I just edited the lines in github editor without testing.

@@ -69,12 +69,12 @@ end
minetest.register_on_joinplayer(function(player)
local name = player:get_player_name()
wieldview.wielded_item[name] = ""

Choose a reason for hiding this comment

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

you use pname below in a couple places now, but did you also mean to use it here (70, 71), and below (77)?

Copy link
Author

Choose a reason for hiding this comment

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

minetest.after() passes the third parameter "name" (line 77) as parameter to the nameless function(pname)...end call in line 72.
Inside of function(pname) only the pname is used.
Inside of minetest.register_on_joinplayer() still "name" is used.

@BuckarooBanzay
Copy link
Member

the additional pname if kinda superfluous, using the name from the parent scope would have been ok too, but yeah: looks good 👍

@BuckarooBanzay BuckarooBanzay merged commit 38fc2cf into minetest-mods:master Jun 26, 2021
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.

None yet

3 participants