From 88af36dd10b854b300156ddd18ec31a3283e9886 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Mon, 31 Oct 2022 09:31:21 +0100 Subject: [PATCH] Fix node placement regression --- src/environment.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/environment.cpp b/src/environment.cpp index 514b15d01..39b40ee0f 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -240,6 +240,7 @@ void Environment::continueRaycast(RaycastState *state, PointedThing *result) // Set undersurface and abovesurface nodes f32 d = 0.002 * BS; v3f fake_intersection = result.intersection_point; + found_boxcenter += npf; // translate back to world coords // Move intersection towards its source block. if (fake_intersection.X < found_boxcenter.X) { fake_intersection.X += d;