-
Notifications
You must be signed in to change notification settings - Fork 2k
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 regression & replace more occurrences of vector.new with vector.copy #12539
Conversation
Add a regression test? |
For a local function? This is used as a helper for in-game stuff, I don't see how testing it would be feasible. |
For |
Do we have a decent framework for multiplayer tests? |
Have you looked into |
No, thanks for pointing me to that. Are these locations documented somewhere? |
No, this would fit well into a wiki page documenting our source structure but we don't have one. |
2cdf169
to
54d08e2
Compare
Uh wait, the test is failing. That means punch_node doesn't do what lua_api.txt promises. You can comment it out for now, that's for another PR/time. |
54d08e2
to
1d787a9
Compare
Nah, it was punching an air node (my bad). The server correctly discarded that. Registered a test node to punch. |
Fixed whatever |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🏝️
Why did the unittest that was added here fail again? |
Not sure. You might find something in the IRC logs. |
https://irc.minetest.net/minetest-dev/2022-07-14#i_5994326 17:12 sfan5 one reason could be that the map is not loaded but that'd be a major fail of the test framework 17:12 have fun debugging this 🤷 |
Fixes #12537.
vector.new(nil)
is the null vector (deprecated). I missed this possibility when replacingvector.new
withvector.copy
: Pointed things may be entities.