mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Update l_object.cpp
This commit is contained in:
parent
03fd933c48
commit
ba31db3eef
1 changed files with 3 additions and 3 deletions
|
@ -2660,9 +2660,9 @@ int ObjectRef::l_set_lighting(lua_State *L)
|
||||||
|
|
||||||
lua_getfield(L, 2, "vignette");
|
lua_getfield(L, 2, "vignette");
|
||||||
if (lua_istable(L, -1)) {
|
if (lua_istable(L, -1)) {
|
||||||
lighting.vignette.dark = getfloatfield_default(L, -1, "dark", lighting.vignette.dark);
|
getfloatfield(L, -1, "dark", lighting.vignette.dark);
|
||||||
lighting.vignette.bright = getfloatfield_default(L, -1, "bright", lighting.vignette.bright);
|
getfloatfield(L, -1, "bright", lighting.vignette.bright);
|
||||||
lighting.vignette.power = getfloatfield_default(L, -1, "power", lighting.vignette.power);
|
getfloatfield(L, -1, "power", lighting.vignette.power);
|
||||||
}
|
}
|
||||||
lua_pop(L, 1); // vignette
|
lua_pop(L, 1); // vignette
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue