mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 16:41:06 +01:00
New attempt to fix #1392
This commit is contained in:
parent
228759e49b
commit
3e3f53efbd
1 changed files with 1 additions and 1 deletions
|
@ -1030,7 +1030,7 @@ local node_ok = function(pos, fallback)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function get_light(pos, tod)
|
local function get_light(pos, tod)
|
||||||
if math.abs(pos.x) < 31000 and math.abs(pos.y) < 31000 and math.abs(pos.z) < 31000 then
|
if minetest.get_node_or_nil(pos) then
|
||||||
local lightfunc = minetest.get_natural_light or minetest.get_node_light
|
local lightfunc = minetest.get_natural_light or minetest.get_node_light
|
||||||
return lightfunc(pos, tod)
|
return lightfunc(pos, tod)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue