5 - Fix crash when set_stars with no parameters breaks on MT 5.6.0

This commit is contained in:
Juraj Vajda 2023-04-04 21:29:12 -04:00
parent 0af310839b
commit 36a0e5eeda
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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