modified: src/Matthww/PlayerInfo/Tasks/FetchModelsTask.php

This commit is contained in:
Keenan Yafiq 2023-08-15 20:27:34 +07:00
parent 7ac9fd5280
commit 8e659424cd

View File

@ -16,7 +16,7 @@ class FetchModelsTask extends AsyncTask {
public function onRun(): void {
$result = Internet::getURL("https://raw.githubusercontent.com/Matthww/PlayerInfo/master/resources/models.yml");
if(!is_string($result)) {
if(!$result instanceof string) {
$this->setResult(false);
return;
}