Fixing an error

このコミットが含まれているのは:
Ad5001 2017-02-20 17:56:21 +01:00
コミット e9befa237e
1個のファイルの変更5行の追加1行の削除

ファイルの表示

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