mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Fixed Server->unloadLevel() not removing objects from memory
This commit is contained in:
parent
6840589f4e
commit
b0c40dc1ab
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user