Fixed build

This commit is contained in:
Dylan K. Taylor
2021-06-26 17:40:43 +01:00
parent 4a5bdefe8b
commit e43bca95bf
2 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,9 @@ foreach($factory->getAllKnownStates() as $index => $block){
}
}
$oldTable = json_decode(file_get_contents(__DIR__ . '/block_factory_consistency_check.json'), true);
if(!is_array($oldTable)){
throw new \pocketmine\utils\AssumptionFailedError("Old table should be array{knownStates: array<string, string>, remaps: array<string, int>}");
}
$old = $oldTable["knownStates"];
$oldRemaps = $oldTable["remaps"];