mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix the *CDP display
This commit is contained in:
parent
e9e9e42573
commit
6c5f79fee9
1 changed files with 4 additions and 4 deletions
|
@ -508,25 +508,25 @@ int ModApiMainMenu::l_get_favorites(lua_State *L)
|
||||||
|
|
||||||
if (servers[i]["password"].asString().size()) {
|
if (servers[i]["password"].asString().size()) {
|
||||||
lua_pushstring(L,"password");
|
lua_pushstring(L,"password");
|
||||||
lua_pushboolean(L,true);
|
lua_pushboolean(L,servers[i]["password"].asBool());
|
||||||
lua_settable(L, top_lvl2);
|
lua_settable(L, top_lvl2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (servers[i]["creative"].asString().size()) {
|
if (servers[i]["creative"].asString().size()) {
|
||||||
lua_pushstring(L,"creative");
|
lua_pushstring(L,"creative");
|
||||||
lua_pushboolean(L,true);
|
lua_pushboolean(L,servers[i]["creative"].asBool());
|
||||||
lua_settable(L, top_lvl2);
|
lua_settable(L, top_lvl2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (servers[i]["damage"].asString().size()) {
|
if (servers[i]["damage"].asString().size()) {
|
||||||
lua_pushstring(L,"damage");
|
lua_pushstring(L,"damage");
|
||||||
lua_pushboolean(L,true);
|
lua_pushboolean(L,servers[i]["damage"].asBool());
|
||||||
lua_settable(L, top_lvl2);
|
lua_settable(L, top_lvl2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (servers[i]["pvp"].asString().size()) {
|
if (servers[i]["pvp"].asString().size()) {
|
||||||
lua_pushstring(L,"pvp");
|
lua_pushstring(L,"pvp");
|
||||||
lua_pushboolean(L,true);
|
lua_pushboolean(L,servers[i]["pvp"].asBool());
|
||||||
lua_settable(L, top_lvl2);
|
lua_settable(L, top_lvl2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue