CrashDump: fix mis-reporting Composer dependency exceptions as plugin crashes

this is still not foolproof but whatever.
This commit is contained in:
Dylan K. Taylor 2018-02-03 19:27:59 +00:00
parent f223fb2876
commit 68b30108be

View File

@ -186,7 +186,7 @@ class CrashDump{
$this->addLine("Line: " . $error["line"]);
$this->addLine("Type: " . $error["type"]);
if(strpos($error["file"], "src/pocketmine/") === false and strpos($error["file"], "src/raklib/") === false and file_exists($error["fullFile"])){
if(strpos($error["file"], "src/pocketmine/") === false and strpos($error["file"], "vendor/pocketmine/") === false and file_exists($error["fullFile"])){
$this->addLine();
$this->addLine("THIS CRASH WAS CAUSED BY A PLUGIN");
$this->data["plugin"] = true;