Skip to content

Commit

Permalink
validate data format
Browse files Browse the repository at this point in the history
  • Loading branch information
Concedo authored and Concedo committed Nov 30, 2024
1 parent 5dce2c9 commit aa11a9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15210,7 +15210,7 @@
}else{
document.getElementById("connectstatusmultiplayer").innerHTML = "<span title='Multiplayer Idle'>M.P. (Idle)</span>";
}
if(vals && vals.turn_major && multiplayer_active && (vals.turn_major != multiplayer_last_turn_major || vals.turn_minor != multiplayer_last_turn_minor))
if(vals && vals.turn_major && multiplayer_active && vals.data_format=="kcpp_lzma_b64" && (vals.turn_major != multiplayer_last_turn_major || vals.turn_minor != multiplayer_last_turn_minor))
{
let minor_change = (multiplayer_last_turn_major == vals.turn_major);
multiplayer_last_turn_major = vals.turn_major;
Expand Down

0 comments on commit aa11a9a

Please sign in to comment.