Skip to content
Permalink
Browse files

Fix the *CDP display

  • Loading branch information
SmallJoker authored and kahrl committed Jul 14, 2014
1 parent e9e9e42 commit 6c5f79fee90ca0f0b971ec2a0e33d0e8f57616cb
Showing with 4 additions and 4 deletions.
  1. +4 −4 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);
}

0 comments on commit 6c5f79f

Please sign in to comment.
You can’t perform that action at this time.