LocalPlayer::accelerateHorizontal: cleanups
[oweals/minetest.git] / src / content_cao.cpp
index 9930873535e8447608771e1cee64d3f461929507..771820cb09c1003cc5c1a61dab10d15b4f4b47bf 100644 (file)
@@ -946,7 +946,7 @@ void GenericCAO::updateLightNoCheck(u8 light_at_pos)
 
 v3s16 GenericCAO::getLightPosition()
 {
-       return floatToInt(m_position, BS);
+       return floatToInt(m_position + v3f(0, 0.5 * BS, 0), BS);
 }
 
 void GenericCAO::updateNodePos()