diff --git a/src/PocketMinecraftServer.php b/src/PocketMinecraftServer.php index 7bbd5e1b0..0cff3e9f9 100644 --- a/src/PocketMinecraftServer.php +++ b/src/PocketMinecraftServer.php @@ -115,7 +115,10 @@ class PocketMinecraftServer{ public function checkMemory(){ $info = $this->debugInfo(); - $this->memoryStats[] = $info["memory_usage"].",".$info["players"].",".$info["entities"]; + $data = $info["memory_usage"].",".$info["players"].",".$info["entities"]; + if($this->memoryStats[count($this->memoryStats) - 1] !== $data){ + $this->memoryStats[] = $data; + } } public function startDatabase(){