mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 08:31:08 +01:00
Fix end lighting
This commit is contained in:
parent
c0c17da5fe
commit
969b6a6138
1 changed files with 2 additions and 3 deletions
|
@ -428,7 +428,7 @@ end
|
||||||
-- * Remove stone, sand, dirt in v6 so our End map generator works in v6.
|
-- * Remove stone, sand, dirt in v6 so our End map generator works in v6.
|
||||||
-- * Generate spawn platform (End portal destination)
|
-- * Generate spawn platform (End portal destination)
|
||||||
local function end_basic(vm, data, data2, emin, emax, area, minp, maxp, blockseed)
|
local function end_basic(vm, data, data2, emin, emax, area, minp, maxp, blockseed)
|
||||||
if minp.y < -26912 or maxp.y >= mcl_vars.mg_end_max then return end
|
if maxp.y < mcl_vars.mg_end_min or minp.y > mcl_vars.mg_end_max then return end
|
||||||
local biomemap --ymin, ymax
|
local biomemap --ymin, ymax
|
||||||
local lvm_used = false
|
local lvm_used = false
|
||||||
local pr = PseudoRandom(blockseed)
|
local pr = PseudoRandom(blockseed)
|
||||||
|
@ -448,9 +448,8 @@ local function end_basic(vm, data, data2, emin, emax, area, minp, maxp, blocksee
|
||||||
lvm_used = true
|
lvm_used = true
|
||||||
|
|
||||||
local shadow = true
|
local shadow = true
|
||||||
if emin.y >= mcl_vars.mg_end_min and emax.y <= -26911 then
|
if minp.y >= mcl_vars.mg_end_min and maxp.y <= -26911 then
|
||||||
shadow = false
|
shadow = false
|
||||||
lvm_used = true
|
|
||||||
end
|
end
|
||||||
return lvm_used, shadow
|
return lvm_used, shadow
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue