Skip to content

Commit

Permalink
and a sanity check just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Oct 17, 2024
1 parent 59d14de commit f1b1a70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/generate-blockstate-upgrade-schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,11 @@ function processRemappedStates(array $upgradeTable) : array{
}
}

$list[encodeOrderedProperties($oldState)] = new BlockStateUpgradeSchemaBlockRemap(
$fallbackRawFilter = encodeOrderedProperties($oldState);
if(isset($list[$fallbackRawFilter])){
throw new AssumptionFailedError("Exact match filter collision for \"" . $pair->old->getName() . "\" - this should never happen");
}
$list[$fallbackRawFilter] = new BlockStateUpgradeSchemaBlockRemap(
$oldState,
$newName,
$cleanedNewState2,
Expand Down

0 comments on commit f1b1a70

Please sign in to comment.