Fixed botched unit tests

This commit is contained in:
Dylan K. Taylor
2022-07-06 23:28:08 +01:00
parent 8886a023f1
commit b0c76f4db5
2 changed files with 14 additions and 1 deletions

View File

@ -46,6 +46,10 @@ if(file_exists($oldTablePath)){
throw new \pocketmine\utils\AssumptionFailedError("Old table should be array{knownStates: array<string, string>, stateDataBits: int}");
}
$old = [];
/**
* @var string $name
* @var int[] $stateIds
*/
foreach($oldTable["knownStates"] as $name => $stateIds){
foreach($stateIds as $stateId){
$old[$stateId] = $name;