diff --git a/src/lgsl_class.php b/src/lgsl_class.php index 62f59cd..6389982 100644 --- a/src/lgsl_class.php +++ b/src/lgsl_class.php @@ -724,7 +724,9 @@ public function updateValues(&$data) { $this->_other = array_merge($this->_other, $data['o'] ?? []); $this->_server = array_merge($this->_server, $data['s'] ?? []); if ($this->isOnline()) { - $this->_players = array_merge($this->_players, $data['p'] ?? []); + if (is_array($data['p']) && count($data['p']) > 0) { + $this->_players = $data['p']; + } } else { $this->_players = []; }