Skip to content

Commit 369d06b

Browse files
authored
Fix Rust (Austinb#716)
1 parent 0032515 commit 369d06b

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

src/GameQ/Protocols/Rust.php

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,12 @@ class Rust extends Source
4242
* @type string
4343
*/
4444
protected $name_long = "Rust";
45-
45+
4646
/**
47-
* Overload so we can get max players from mp of keywords and num players from cp keyword
47+
* query_port = client_port + 1
4848
*
49-
* @param Buffer $buffer
49+
* @type int
5050
*/
51-
protected function processDetails(Buffer $buffer)
52-
{
53-
$results = parent::processDetails($buffer);
54-
55-
if ($results['keywords']) {
56-
//get max players from mp of keywords and num players from cp keyword
57-
preg_match_all('/(mp|cp)([\d]+)/', $results['keywords'], $matches);
58-
$results['max_players'] = intval($matches[2][0]);
59-
$results['num_players'] = intval($matches[2][1]);
60-
}
51+
protected $port_diff = 1;
6152

62-
return $results;
63-
}
6453
}

0 commit comments

Comments
 (0)