update manager fix
This commit is contained in:
parent
cfa50168b3
commit
8cb6fdcceb
@ -303,8 +303,8 @@ class UpdateManager implements CallbackListener, CommandListener, TimerListener
|
|||||||
|
|
||||||
$self = $this;
|
$self = $this;
|
||||||
$this->maniaControl->fileReader->loadFile($this->coreUpdateData->url, function ($updateFileContent, $error) use (&$self, &$updateData, &$player) {
|
$this->maniaControl->fileReader->loadFile($this->coreUpdateData->url, function ($updateFileContent, $error) use (&$self, &$updateData, &$player) {
|
||||||
if (!$updateFileContent || !$error) {
|
if (!$updateFileContent || $error) {
|
||||||
$message = "Update failed: Couldn't load Update zip!";
|
$message = "Update failed: Couldn't load Update zip! {$error}";
|
||||||
if ($player) {
|
if ($player) {
|
||||||
$self->maniaControl->chat->sendError($message, $player);
|
$self->maniaControl->chat->sendError($message, $player);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user