Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
larryTheCoder committed Dec 12, 2023
1 parent 577ae5e commit 1ae1f13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/muqsit/vanillagenerator/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')){
Expand Down Expand Up @@ -63,7 +63,7 @@ private function registerBlocks(): void{
$value |= ($block->getLightLevel() << 4);

\OverworldGenerator::registerBlock($block->getIdInfo()->getBlockTypeId(), $blockMeta, $value);
}catch(ReflectionException){
}catch(Throwable){
}
}
}
Expand Down

0 comments on commit 1ae1f13

Please sign in to comment.