You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having to pass a number as a string is not intuitive at all. This is even worse than the zero based-ness of this value.
In lua indexes begin with 1 not 0 and I can't think of any other node that treats distance this way. Everywhere else radius/distance of 0 is the node itself, a radius of 1 are the eight 26 nodes around it and a distance of 1 a node next to it.
It may be too late to change to 1-based distance, but IMO the distance field should be treated as a number not a string.
(It is ruining my automated blueberry fields because the code used to accept a number for the distance field, but now the number is ignored and the wrong nodes are being dug. These blueberry leaves can't be dug and placed, they need to be grown in place or moved using pistons and similar.)
Sorry for the forceful tone, I admit I'm venting a bit.
The text was updated successfully, but these errors were encountered:
If anything this should check for number not string and then
meta:set_int()
https://github.com/minetest-mods/mesecons/blame/d52eac5a4afec3d68f39224a8da541b3ba52b561/mesecons_detector/init.lua#L226
Having to pass a number as a string is not intuitive at all. This is even worse than the zero based-ness of this value.
In lua indexes begin with 1 not 0 and I can't think of any other node that treats distance this way. Everywhere else radius/distance of 0 is the node itself, a radius of 1 are the
eight26 nodes around it and a distance of 1 a node next to it.It may be too late to change to 1-based distance, but IMO the distance field should be treated as a number not a string.
(It is ruining my automated blueberry fields because the code used to accept a number for the distance field, but now the number is ignored and the wrong nodes are being dug. These blueberry leaves can't be dug and placed, they need to be grown in place or moved using pistons and similar.)
Sorry for the forceful tone, I admit I'm venting a bit.
The text was updated successfully, but these errors were encountered: