aboutsummaryrefslogtreecommitdiff
path: root/src/environment.cpp
diff options
context:
space:
mode:
authorLars Mueller <appgurulars@gmx.de>2022-10-31 09:31:21 +0100
committersfan5 <sfan5@live.de>2022-10-31 14:17:28 +0100
commit88af36dd10b854b300156ddd18ec31a3283e9886 (patch)
treeed5fc057c4f6ef8e0f365091b42a3c9ddfb8edd5 /src/environment.cpp
parent260de1c2b5a74595f9dd5ed9671834dca13414b2 (diff)
downloadminetest-88af36dd10b854b300156ddd18ec31a3283e9886.tar.xz
Fix node placement regression
Diffstat (limited to 'src/environment.cpp')
-rw-r--r--src/environment.cpp1
1 files changed, 1 insertions, 0 deletions
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;