Skip to content

Commit

Permalink
Fix incorrect key name causing master server errors
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Sep 3, 2022
1 parent dc406b7 commit e2303af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mods/AutomataMPMod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void AutomataMPMod::display_servers() {

new_server_data->ip = ip;
new_server_data->name = data["Name"];
new_server_data->num_players = data["num_players"];
new_server_data->num_players = data["NumPlayers"];

m_servers.push_back(std::move(new_server_data));
}
Expand Down Expand Up @@ -163,6 +163,7 @@ void AutomataMPMod::on_draw_ui() {
ImGui::InputText("Password", m_password_input.data(), m_password_input.size());

ImGui::InputText("Master Server", m_master_server_input.data(), m_master_server_input.size());
ImGui::SetNextItemOpen(true, ImGuiCond_Once);
if (ImGui::TreeNode("Servers")) {
display_servers();
ImGui::TreePop();
Expand Down

0 comments on commit e2303af

Please sign in to comment.