double erase mapfix
This commit is contained in:
parent
9fdabeb633
commit
b7e167fa95
@ -224,13 +224,13 @@ class MapManager implements CallbackListener {
|
||||
* @param bool $message
|
||||
*/
|
||||
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);
|
||||
if(!isset($this->maps[$uid])){
|
||||
$this->maniaControl->chat->sendError("Map is not existing!", $admin->login);
|
||||
return;
|
||||
}
|
||||
|
||||
$map = $this->maps[$uid];
|
||||
|
||||
// Unset the Map everywhere
|
||||
$this->mapQueue->removeFromMapQueue($admin, $map->uid);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user