Server Browser is now properly updated like the offical launcher- just a bit more flashy due to taking 100+ ms to regenerate ui elements

This commit is contained in:
2021-12-30 18:56:56 -06:00
parent 1214c35fb5
commit 1b91191d90
4 changed files with 46 additions and 36 deletions

View File

@@ -26,6 +26,9 @@ class W3DHub
@status.instance_variable_set(:@started, hash[:started])
@status.instance_variable_set(:@remaining, hash[:remaining])
@status.instance_variable_set(:@teams, hash[:teams]&.map { |t| Team.new(t) }) if hash[:teams]
@status.instance_variable_set(:@players, hash[:players]&.select { |t| t[:nick] != "Nod" && t[:nick] != "GDI" }&.map { |t| Player.new(t) }) if hash[:players]
return true
end