Fixing a PMMP bug related to OtherNamespaces fix.
This commit is contained in:
parent
c9864edd99
commit
4e261265f1
1 changed files with 5 additions and 1 deletions
|
@ -251,6 +251,10 @@ class Main extends PluginBase implements \pocketmine\event\Listener {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function isOtherNS() {
|
public static function isOtherNS() {
|
||||||
return @class_exists("pocketmine\\level\\generator\\normal\\object\\OakTree");
|
try {
|
||||||
|
return @class_exists("pocketmine\\level\\generator\\normal\\object\\OakTree");
|
||||||
|
} catch(\Exception $e) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue