mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-04-05 05:41:28 +02:00
Merge branch 'master' into damage
This commit is contained in:
@ -1031,7 +1031,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
|
||||||
|
Reference in New Issue
Block a user