1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-05 17:30:21 +02:00

Fix crash when stars are reset

This commit is contained in:
Zughy
2022-08-10 18:03:57 +02:00
committed by GitHub
parent 4fbcc33ee0
commit bcc56803d7

View File

@ -2082,10 +2082,9 @@ int ObjectRef::l_set_stars(lua_State *L)
star_params.scale = getfloatfield_default(L, 2,
"scale", star_params.scale);
}
star_params.day_opacity = getfloatfield_default(L, 2,
"day_opacity", star_params.day_opacity);
}
getServer(L)->setStars(player, star_params);
return 0;