Use setting 'sneeker.spawn_maxlight' to determine node light for spawn

This commit is contained in:
AntumDeluge
2017-05-29 01:00:39 -07:00
committed by Jordan Irwin
parent 439646417a
commit a5025cdfb8
3 changed files with 9 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ minetest.register_abm({
if not minetest.get_node_light(pos) then
return
end
if minetest.get_node_light(pos) > 5 then
if minetest.get_node_light(pos) > sneeker.spawn_maxlight then
return
end
if minetest.get_node_light(pos) < -1 then