From 6166c90bfd37bc420757119bb910cee2ec64ed27 Mon Sep 17 00:00:00 2001 From: Stephen Date: Thu, 7 Nov 2019 19:45:47 -0500 Subject: [PATCH] No need for a try catch statement around reading a file --- .../network/mcpe/protocol/types/RuntimeBlockMapping.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pocketmine/network/mcpe/protocol/types/RuntimeBlockMapping.php b/src/pocketmine/network/mcpe/protocol/types/RuntimeBlockMapping.php index bc8d7df41..03a383e69 100644 --- a/src/pocketmine/network/mcpe/protocol/types/RuntimeBlockMapping.php +++ b/src/pocketmine/network/mcpe/protocol/types/RuntimeBlockMapping.php @@ -52,13 +52,7 @@ final class RuntimeBlockMapping{ public static function init() : void{ $legacyIdMap = json_decode(file_get_contents(\pocketmine\RESOURCE_PATH . "vanilla/block_id_map.json"), true); - - try{ - /** @var CompoundTag $tag */ - $tag = (new BigEndianNBTStream())->read(file_get_contents(\pocketmine\RESOURCE_PATH . "vanilla/runtime_block_states.dat")); - }catch(BinaryDataException $e){ - throw new \RuntimeException("", 0, $e); - } + $tag = (new BigEndianNBTStream())->read(file_get_contents(\pocketmine\RESOURCE_PATH . "vanilla/runtime_block_states.dat")); $decompressed = [];