S-S-X / mineunit

Minetest core / engine libraries for regression tests
Other
10 stars 6 forks source link

World.get_node and set_default_node #49

Closed S-S-X closed 3 years ago

S-S-X commented 3 years ago

Verify what happens if minetest.get_node({x=0.1,y=0.2,z=0.3}) is called, will it return node at 0,0,0 or will it fail? Remove vector.round if engine fails in that case.

S-S-X commented 3 years ago

Engine get_node returns same node around x -0.5 - 0.5, y -0.5 - 0.5, z -0.5 - 0.5 Rounding should work without problems.