double erase map bugfix
This commit is contained in:
parent
424e9f3261
commit
9fdabeb633
@ -225,7 +225,12 @@ class MapManager implements CallbackListener {
|
||||
*/
|
||||
public function removeMap(Player $admin, $uid, $eraseFile = false, $message = true) {
|
||||
$map = $this->maps[$uid];
|
||||
|
||||
|
||||
if(!$map){
|
||||
$this->maniaControl->chat->sendError("Map is not existing anymore)", $admin->login);
|
||||
return;
|
||||
}
|
||||
|
||||
// Unset the Map everywhere
|
||||
$this->mapQueue->removeFromMapQueue($admin, $map->uid);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user