From 1ae1f13c978826ccaf63dfd92a9a863ce2c0f55f Mon Sep 17 00:00:00 2001 From: larryTheCoder Date: Tue, 12 Dec 2023 15:36:59 +0800 Subject: [PATCH] fix: bug --- src/muqsit/vanillagenerator/Loader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/muqsit/vanillagenerator/Loader.php b/src/muqsit/vanillagenerator/Loader.php index ba7f620..a511c28 100644 --- a/src/muqsit/vanillagenerator/Loader.php +++ b/src/muqsit/vanillagenerator/Loader.php @@ -10,12 +10,12 @@ use pocketmine\block\VanillaBlocks; use pocketmine\plugin\PluginBase; use pocketmine\world\generator\GeneratorManager; -use ReflectionException; use ReflectionMethod; +use Throwable; final class Loader extends PluginBase { - private const EXT_MCGENERATOR_VERSION = "2.1.1"; + private const EXT_MCGENERATOR_VERSION = "2.1.5"; public function onLoad(): void{ if(!extension_loaded('vanillagenerator')){ @@ -63,7 +63,7 @@ private function registerBlocks(): void{ $value |= ($block->getLightLevel() << 4); \OverworldGenerator::registerBlock($block->getIdInfo()->getBlockTypeId(), $blockMeta, $value); - }catch(ReflectionException){ + }catch(Throwable){ } } }