mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-17 17:08:39 +00:00
Fix node placement regression
This commit is contained in:
parent
260de1c2b5
commit
88af36dd10
1 changed files with 1 additions and 0 deletions
|
@ -240,6 +240,7 @@ void Environment::continueRaycast(RaycastState *state, PointedThing *result)
|
||||||
// Set undersurface and abovesurface nodes
|
// Set undersurface and abovesurface nodes
|
||||||
f32 d = 0.002 * BS;
|
f32 d = 0.002 * BS;
|
||||||
v3f fake_intersection = result.intersection_point;
|
v3f fake_intersection = result.intersection_point;
|
||||||
|
found_boxcenter += npf; // translate back to world coords
|
||||||
// Move intersection towards its source block.
|
// Move intersection towards its source block.
|
||||||
if (fake_intersection.X < found_boxcenter.X) {
|
if (fake_intersection.X < found_boxcenter.X) {
|
||||||
fake_intersection.X += d;
|
fake_intersection.X += d;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue