diff --git a/src/Ad5001/BetterBlocks/Main.php b/src/Ad5001/BetterBlocks/Main.php index ee2b150..230ed2b 100644 --- a/src/Ad5001/BetterBlocks/Main.php +++ b/src/Ad5001/BetterBlocks/Main.php @@ -282,7 +282,11 @@ class Main extends PluginBase implements Listener { @return bool */ public function isCompatible() : bool { - return class_exists("pocketmine\\tile\\Hopper") && class_exists("pocketmine\\block\\SlimeBlock") && class_exists("pocketmine\\item\\Lever"); + try { + return @class_exists("pocketmine\\tile\\Hopper") && @class_exists("pocketmine\\block\\SlimeBlock")/* && @class_exists("pocketmine\\item\\Lever")*/; + } catch (\Exception $e) { + return false; + } }