mirror of
https://github.com/Matthww/PlayerInfo.git
synced 2025-05-13 08:59:21 +00:00
modified: src/Matthww/PlayerInfo/Tasks/FetchModelsTask.php
This commit is contained in:
parent
7ac9fd5280
commit
8e659424cd
@ -16,7 +16,7 @@ class FetchModelsTask extends AsyncTask {
|
|||||||
|
|
||||||
public function onRun(): void {
|
public function onRun(): void {
|
||||||
$result = Internet::getURL("https://raw.githubusercontent.com/Matthww/PlayerInfo/master/resources/models.yml");
|
$result = Internet::getURL("https://raw.githubusercontent.com/Matthww/PlayerInfo/master/resources/models.yml");
|
||||||
if(!is_string($result)) {
|
if(!$result instanceof string) {
|
||||||
$this->setResult(false);
|
$this->setResult(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user