mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +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
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function unloadLevel(Level $level, $forceUnload = false){
|
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()]);
|
unset($this->levels[$level->getID()]);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user