mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
...
This commit is contained in:
parent
04aabaee5e
commit
a1cd1d7433
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user