From fdd59e450696bc7389fb71817d4b8744bb4a6ed6 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 23 Aug 2014 20:14:41 +0200 Subject: [PATCH] Fixed default memory-limit values --- src/pocketmine/Server.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/Server.php b/src/pocketmine/Server.php index 939e1b5d9d..5d44197a07 100644 --- a/src/pocketmine/Server.php +++ b/src/pocketmine/Server.php @@ -1463,7 +1463,7 @@ class Server{ $this->maxPlayers = $this->getConfigInt("max-players", 20); - if(($memory = str_replace("B", "", strtoupper($this->getConfigString("memory-limit", "128M")))) !== false){ + if(($memory = str_replace("B", "", strtoupper($this->getConfigString("memory-limit", "256M")))) !== false){ $value = array("M" => 1, "G" => 1024); $real = ((int) substr($memory, 0, -1)) * $value[substr($memory, -1)]; if($real < 128){ @@ -1471,7 +1471,7 @@ class Server{ } @ini_set("memory_limit", $memory); }else{ - $this->setConfigString("memory-limit", "128M"); + $this->setConfigString("memory-limit", "256M"); } if($this->getConfigBoolean("hardcore", false) === true and $this->getDifficulty() < 3){ @@ -1732,7 +1732,7 @@ class Server{ } @ini_set("memory_limit", $memory); }else{ - $this->setConfigString("memory-limit", "128M"); + $this->setConfigString("memory-limit", "256M"); } if($this->getConfigBoolean("hardcore", false) === true and $this->getDifficulty() < 3){