Server: stop discriminating against folder plugins when generating crashdumps

in PM6, non-development plugins may appear in folder form.
This commit is contained in:
Dylan K. Taylor 2023-07-26 10:47:39 +01:00
parent c4ff6d7757
commit 89f8f421a6
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -81,7 +81,6 @@ use pocketmine\player\PlayerDataSaveException;
use pocketmine\player\PlayerInfo;
use pocketmine\plugin\FolderPluginLoader;
use pocketmine\plugin\PharPluginLoader;
use pocketmine\plugin\Plugin;
use pocketmine\plugin\PluginEnableOrder;
use pocketmine\plugin\PluginGraylist;
use pocketmine\plugin\PluginManager;
@ -1592,15 +1591,6 @@ class Server{
}
@touch($stamp); //update file timestamp
$plugin = $dump->getData()->plugin;
if($plugin !== ""){
$p = $this->pluginManager->getPlugin($plugin);
if($p instanceof Plugin && !($p->getPluginLoader() instanceof PharPluginLoader)){
$this->logger->debug("Not sending crashdump due to caused by non-phar plugin");
$report = false;
}
}
if($dump->getData()->error["type"] === \ParseError::class){
$report = false;
}