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