diff options
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_vmanip.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/script/lua_api/l_vmanip.cpp b/src/script/lua_api/l_vmanip.cpp index 29f04f052..f64b94af1 100644 --- a/src/script/lua_api/l_vmanip.cpp +++ b/src/script/lua_api/l_vmanip.cpp @@ -214,7 +214,10 @@ int LuaVoxelManip::l_set_lighting(lua_State *L) Mapgen mg; mg.vm = vm; - mg.setLighting(p1, p2, light); + mg.setLighting( + p1 + v3s16(0, 1, 0) * MAP_BLOCKSIZE, + p2 - v3s16(0, 1, 0) * MAP_BLOCKSIZE, + light); return 0; } |