summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content_cao.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp
index 993087353..771820cb0 100644
--- a/src/content_cao.cpp
+++ b/src/content_cao.cpp
@@ -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()