Added main-hard-limit memory property similar to old memory-limit, use less memory on startup (RakLib)

This commit is contained in:
Shoghi Cervantes
2015-07-11 13:16:39 +02:00
parent 1ebf2476df
commit 0c09361c46
4 changed files with 42 additions and 11 deletions

View File

@ -1646,12 +1646,6 @@ class Server{
$this->maxPlayers = $this->getConfigInt("max-players", 20);
$this->setAutoSave($this->getConfigBoolean("auto-save", true));
if($this->getConfigString("memory-limit", false) !== false){
$this->logger->notice("The memory-limit setting has been deprecated.");
$this->logger->notice("There are new memory settings on pocketmine.yml to tune memory and events.");
$this->logger->notice("You can also reduce the amount of threads and chunks loaded control the memory usage.");
}
if($this->getConfigBoolean("hardcore", false) === true and $this->getDifficulty() < 3){
$this->setConfigInt("difficulty", 3);
}