From 8d68f8c803cf9e19b4a1a1a21e0e07f91dbcdaba Mon Sep 17 00:00:00 2001 From: skyss0fly <100278495+skyss0fly@users.noreply.github.com> Date: Wed, 5 Apr 2023 17:36:53 +1000 Subject: [PATCH] Update Main.php --- src/ipad54/netherblocks/Main.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ipad54/netherblocks/Main.php b/src/ipad54/netherblocks/Main.php index df5a317..6507e00 100644 --- a/src/ipad54/netherblocks/Main.php +++ b/src/ipad54/netherblocks/Main.php @@ -40,7 +40,9 @@ use ipad54\netherblocks\items\FlintAndSteel; use ipad54\netherblocks\listener\EventListener; use ipad54\netherblocks\utils\CustomConfig; -use ipad54\netherblocks\utils\CustomIds; +use ipad54\netherblocks\utils\CustomIds; +use ipad54\resources\nbt_upgrade_schema; +use ipad54\resources; use pocketmine\block\Block; use pocketmine\block\BlockBreakInfo; use pocketmine\block\BlockFactory; @@ -87,7 +89,7 @@ use pocketmine\Server; use pocketmine\utils\Config; use ReflectionMethod; -use pmmp\BedrockBlockUpgradeSchema; + class Main extends PluginBase { @@ -137,7 +139,7 @@ public static function initializeRuntimeIds(): void $method = new ReflectionMethod(RuntimeBlockMapping::class, "registerMapping"); $method->setAccessible(true); - $blockIdMap = json_decode(file_get_contents(BedrockBlockUpgradeSchema . 'block_legacy_id_map.json'), true); + $blockIdMap = json_decode(file_get_contents( nbt_upgrade_schema . 'block_legacy_id_map.json'), true); $metaMap = []; foreach ($instance->getBedrockKnownStates() as $runtimeId => $nbt) {