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

Doors: Fix missing node parameter passing. #1189

Closed
wants to merge 1 commit into from

Conversation

t4im
Copy link
Contributor

@t4im t4im commented Jul 11, 2016

see #1188.

@paramat paramat added the Bugfix label Jul 11, 2016
@ghost
Copy link

ghost commented Jul 11, 2016

This fixes the issue for me.

@paramat
Copy link
Contributor

paramat commented Jul 11, 2016

👍

end,
state = function(self)
return node_name:sub(-5) == "_open"
return minetest.get_node(self.pos).name:sub(-5) == "_open"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is the only bit i don't understand
@sofar is this ok?

Copy link
Contributor Author

@t4im t4im Jul 11, 2016

Choose a reason for hiding this comment

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

I've essentially reverted my previous removal here to force a new node lookup on self.pos.
This way, there is less chance for mods requesting an old state (e.g. after you closed or opened the door).
Removing this before was bad judgment on my part.

@paramat
Copy link
Contributor

paramat commented Jul 11, 2016

Anyway this is an urgent fix so will merge later.

@Ekdohibs
Copy link
Member

👍, untested but it should fix the bug from what I see.

@jhcole
Copy link
Contributor

jhcole commented Jul 11, 2016

This fix works for me.

@ghost
Copy link

ghost commented Jul 13, 2016

Anyway this is an urgent fix so will merge later.

Ping

@paramat
Copy link
Contributor

paramat commented Jul 13, 2016

b749549

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.

None yet

4 participants