Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Feb 9, 2025
1 parent 6f145e1 commit b3ce2ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion games/devtest/mods/unittests/version.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ unittests.register("test_protocol_version", function(player)
if info.protocol_version < maxver then
core.log("warning", "test_protocol_version: client is outdated, skipping test!")
return
elseif info.version_string ~= core.get_version().string then
end
local info_server = core.get_version()
if info.version_string ~= (info_server.hash or info_server.string) then
core.log("warning", "test_protocol_version: client is not the same version. False-positive possible.")
end

Expand Down

0 comments on commit b3ce2ff

Please sign in to comment.