This commit is contained in:
Dylan K. Taylor 2023-04-28 19:35:03 +01:00
parent 04aabaee5e
commit a1cd1d7433
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -279,9 +279,9 @@ final class BlockStateUpgradeSchemaUtils{
array_map(fn(Tag $tag) => self::tagToJsonModel($tag), $remap->newState), array_map(fn(Tag $tag) => self::tagToJsonModel($tag), $remap->newState),
); );
$key = json_encode($modelRemap); $key = json_encode($modelRemap);
assert(!isset($keyedRemaps[$key]));
if(isset($keyedRemaps[$key])){ if(isset($keyedRemaps[$key])){
continue; continue;
throw new AssumptionFailedError("Duplicate remap: $key");
} }
$keyedRemaps[$key] = $modelRemap; $keyedRemaps[$key] = $modelRemap;
} }