Browse Source

Fixing an error

master
Ad5001 2 years ago
parent
commit
e9befa237e
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/Ad5001/BetterBlocks/Main.php

+ 5
- 1
src/Ad5001/BetterBlocks/Main.php View File

@@ -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;
}
}



Loading…
Cancel
Save