Fixing a PMMP bug related to OtherNamespaces fix.

This commit is contained in:
Ad5001 2017-05-02 17:37:08 +02:00
parent c9864edd99
commit 4e261265f1
1 changed files with 5 additions and 1 deletions

View File

@ -251,6 +251,10 @@ class Main extends PluginBase implements \pocketmine\event\Listener {
* @return bool
*/
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;
}
}
}