5 - Fix crash when set_stars with no parameters breaks on MT 5.6.0
This commit is contained in:
parent
0af310839b
commit
36a0e5eeda
2
mod.conf
2
mod.conf
|
@ -2,4 +2,4 @@ name = everness
|
|||
description = Never ending discovery in Everness mapgen.
|
||||
depends =
|
||||
optional_depends = default, xpanes, doors, stairs, walls, x_obsidianmese, x_tumbleweed, x_farming, x_clay, mcl_core, mcl_fences, mcl_walls, mcl_stairs, mcl_util, mcl_autogroup, mcl_doors, mcl_mapgen_core, rp_default
|
||||
min_minetest_version = 5.4
|
||||
min_minetest_version = 5.5
|
||||
|
|
|
@ -775,7 +775,8 @@ minetest.register_globalstep(function(dtime)
|
|||
if skybox_defs[biome_name].star_parameters then
|
||||
player:set_stars(skybox_defs[biome_name].star_parameters)
|
||||
else
|
||||
player:set_stars()
|
||||
-- passing empty object otherwise it will break on MT 5.6.0
|
||||
player:set_stars({})
|
||||
end
|
||||
|
||||
if skybox_defs[biome_name].sky_parameters then
|
||||
|
@ -792,7 +793,8 @@ minetest.register_globalstep(function(dtime)
|
|||
else
|
||||
player:set_sun()
|
||||
player:set_moon()
|
||||
player:set_stars()
|
||||
-- passing empty object otherwise it will break on MT 5.6.0
|
||||
player:set_stars({})
|
||||
player:set_sky()
|
||||
player:set_clouds()
|
||||
end
|
||||
|
|
Ŝarĝante…
Reference in New Issue