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.
|
description = Never ending discovery in Everness mapgen.
|
||||||
depends =
|
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
|
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
|
if skybox_defs[biome_name].star_parameters then
|
||||||
player:set_stars(skybox_defs[biome_name].star_parameters)
|
player:set_stars(skybox_defs[biome_name].star_parameters)
|
||||||
else
|
else
|
||||||
player:set_stars()
|
-- passing empty object otherwise it will break on MT 5.6.0
|
||||||
|
player:set_stars({})
|
||||||
end
|
end
|
||||||
|
|
||||||
if skybox_defs[biome_name].sky_parameters then
|
if skybox_defs[biome_name].sky_parameters then
|
||||||
|
@ -792,7 +793,8 @@ minetest.register_globalstep(function(dtime)
|
||||||
else
|
else
|
||||||
player:set_sun()
|
player:set_sun()
|
||||||
player:set_moon()
|
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_sky()
|
||||||
player:set_clouds()
|
player:set_clouds()
|
||||||
end
|
end
|
||||||
|
|
Ŝarĝante…
Reference in New Issue