and a sanity check just in case

This commit is contained in:
Dylan K. Taylor 2024-10-17 20:55:12 +01:00
parent 59d14de1d8
commit f1b1a7022d
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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, $oldState,
$newName, $newName,
$cleanedNewState2, $cleanedNewState2,