Explain weird End lighting

This commit is contained in:
Wuzzy 2017-08-18 14:10:49 +02:00
parent 12df4c98b4
commit cb1dbcb2db

View file

@ -1346,10 +1346,9 @@ minetest.register_on_generated(function(minp, maxp)
end end
end end
-- Set high light level in the End. This is very hacky and messes up the shadows below the End islands.
-- FIXME: Find a better way to do light.
if minp.y >= mcl_vars.mg_end_min and maxp.y <= mcl_vars.mg_end_max then if minp.y >= mcl_vars.mg_end_min and maxp.y <= mcl_vars.mg_end_max then
-- local min, max = table.copy(minp), table.copy(maxp)
-- min.y = math.max(minp.y, mcl_vars.mg_end_min)
-- max.y = math.min(maxp.y, mcl_vars.mg_end_max)
vm:set_lighting({day=14, night=14}) vm:set_lighting({day=14, night=14})
lvm_used = true lvm_used = true
end end