Skip to content

Commit 6c5f79f

Browse files
SmallJokerkahrl
authored andcommittedAug 15, 2014
Fix the *CDP display
1 parent e9e9e42 commit 6c5f79f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/script/lua_api/l_mainmenu.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -508,25 +508,25 @@ int ModApiMainMenu::l_get_favorites(lua_State *L)
508508

509509
if (servers[i]["password"].asString().size()) {
510510
lua_pushstring(L,"password");
511-
lua_pushboolean(L,true);
511+
lua_pushboolean(L,servers[i]["password"].asBool());
512512
lua_settable(L, top_lvl2);
513513
}
514514

515515
if (servers[i]["creative"].asString().size()) {
516516
lua_pushstring(L,"creative");
517-
lua_pushboolean(L,true);
517+
lua_pushboolean(L,servers[i]["creative"].asBool());
518518
lua_settable(L, top_lvl2);
519519
}
520520

521521
if (servers[i]["damage"].asString().size()) {
522522
lua_pushstring(L,"damage");
523-
lua_pushboolean(L,true);
523+
lua_pushboolean(L,servers[i]["damage"].asBool());
524524
lua_settable(L, top_lvl2);
525525
}
526526

527527
if (servers[i]["pvp"].asString().size()) {
528528
lua_pushstring(L,"pvp");
529-
lua_pushboolean(L,true);
529+
lua_pushboolean(L,servers[i]["pvp"].asBool());
530530
lua_settable(L, top_lvl2);
531531
}
532532

0 commit comments

Comments
 (0)