Fixing a PMMP bug related to OtherNamespaces fix.

This commit is contained in:
Adsooi 2017-05-02 17:37:08 +02:00
parent c9864edd99
commit 4e261265f1

View file

@ -251,6 +251,10 @@ class Main extends PluginBase implements \pocketmine\event\Listener {
* @return bool * @return bool
*/ */
public static function isOtherNS() { public static function isOtherNS() {
try {
return @class_exists("pocketmine\\level\\generator\\normal\\object\\OakTree"); return @class_exists("pocketmine\\level\\generator\\normal\\object\\OakTree");
} catch(\Exception $e) {
return false;
}
} }
} }