From 68b30108beb44505f6e66fb6639c4b2965bd7e5b Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 3 Feb 2018 19:27:59 +0000 Subject: [PATCH] CrashDump: fix mis-reporting Composer dependency exceptions as plugin crashes this is still not foolproof but whatever. --- src/pocketmine/CrashDump.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/CrashDump.php b/src/pocketmine/CrashDump.php index 3c3e78bc8..d34a533e5 100644 --- a/src/pocketmine/CrashDump.php +++ b/src/pocketmine/CrashDump.php @@ -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;