diff options
author | SmallJoker <st.rentsch@hotmail.com> | 2014-07-14 16:54:18 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2014-08-15 21:46:04 +0200 |
commit | 6c5f79fee90ca0f0b971ec2a0e33d0e8f57616cb (patch) | |
tree | c763b8d8b4b0a11bd2c1b44c2ce93f30a3c3804a /src/script | |
parent | e9e9e42573a50dbf94370996d65b03dca1d5c284 (diff) | |
download | minetest-6c5f79fee90ca0f0b971ec2a0e33d0e8f57616cb.tar.gz minetest-6c5f79fee90ca0f0b971ec2a0e33d0e8f57616cb.tar.bz2 minetest-6c5f79fee90ca0f0b971ec2a0e33d0e8f57616cb.zip |
Fix the *CDP display
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/lua_api/l_mainmenu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/script/lua_api/l_mainmenu.cpp b/src/script/lua_api/l_mainmenu.cpp index cb32c9e82..ae2fddf6d 100644 --- a/src/script/lua_api/l_mainmenu.cpp +++ b/src/script/lua_api/l_mainmenu.cpp @@ -508,25 +508,25 @@ int ModApiMainMenu::l_get_favorites(lua_State *L) if (servers[i]["password"].asString().size()) { lua_pushstring(L,"password"); - lua_pushboolean(L,true); + lua_pushboolean(L,servers[i]["password"].asBool()); lua_settable(L, top_lvl2); } if (servers[i]["creative"].asString().size()) { lua_pushstring(L,"creative"); - lua_pushboolean(L,true); + lua_pushboolean(L,servers[i]["creative"].asBool()); lua_settable(L, top_lvl2); } if (servers[i]["damage"].asString().size()) { lua_pushstring(L,"damage"); - lua_pushboolean(L,true); + lua_pushboolean(L,servers[i]["damage"].asBool()); lua_settable(L, top_lvl2); } if (servers[i]["pvp"].asString().size()) { lua_pushstring(L,"pvp"); - lua_pushboolean(L,true); + lua_pushboolean(L,servers[i]["pvp"].asBool()); lua_settable(L, top_lvl2); } |