From: Loic Blot Date: Tue, 23 May 2017 17:59:47 +0000 (+0200) Subject: Fix wrong return value in get_sky Lua call since ad9fcf859ec2347325830e09504ae96968b51ea8 X-Git-Tag: 0.4.16~66 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c445a3d958bf2b3f06e5b92a505d9710ef044809;p=oweals%2Fminetest.git Fix wrong return value in get_sky Lua call since ad9fcf859ec2347325830e09504ae96968b51ea8 Fix #5803 --- diff --git a/src/script/lua_api/l_object.cpp b/src/script/lua_api/l_object.cpp index c7a31d048..aaab0d98e 100644 --- a/src/script/lua_api/l_object.cpp +++ b/src/script/lua_api/l_object.cpp @@ -1732,7 +1732,7 @@ int ObjectRef::l_get_sky(lua_State *L) i++; } lua_pushboolean(L, clouds); - return 3; + return 4; } // set_clouds(self, {density=, color=, ambient=, height=, thickness=, speed=})