Fixed Server->unloadLevel() not removing objects from memory

This commit is contained in:
Shoghi Cervantes 2014-10-04 20:56:27 +02:00
parent 6840589f4e
commit b0c40dc1ab

View File

@ -915,7 +915,7 @@ class Server{
* @return bool
*/
public function unloadLevel(Level $level, $forceUnload = false){
if($level->unload($forceUnload) === true and $this->isLevelLoaded($level->getFolderName())){
if($level->unload($forceUnload) === true){
unset($this->levels[$level->getID()]);
return true;