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
Allow place_param2
values of 0 to be predicted client-side
#13784
Comments
place_param2
values of 0 are ignoredplace_param2
values of 0 to work
To no surprise this is because "0" is the neutral value so it is ignored. I wasn't totally sure if this should be a bug or feature request, now it's the latter. |
I realised I probably was a bit vague in the title so a bit of a clarification. |
place_param2
values of 0 to workplace_param2
values of 0 to be predicted client-side
This goes quite deep. The network protocol requires an additional boolean value in order to enable telling the client "yes, my 0 is 0, not a command to ask you to figure out param2 on your own". Currently 0 has a double meaning, it's only 0 if the client doesn't determine magic needs to happen based on various separate conditionals: Line 3634 in 1a568cc
|
I see. |
Minetest version
Active renderer
No response
Irrlicht device
No response
Operating system and version
Linux
CPU model
No response
GPU model
No response
OpenGL version
No response
Summary
When adding
place_param2 = 0
to a node to enable the client to predict the direction of a node (e.g. planks in MTG are rotatable but should only ever be rotated at one angle when placed), it ignores the value as 0 is also used for nodes without any param2 prediction, leading to flickering textures on the client.Steps to reproduce
The text was updated successfully, but these errors were encountered: