mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +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),
|
||||
);
|
||||
$key = json_encode($modelRemap);
|
||||
assert(!isset($keyedRemaps[$key]));
|
||||
if(isset($keyedRemaps[$key])){
|
||||
continue;
|
||||
throw new AssumptionFailedError("Duplicate remap: $key");
|
||||
}
|
||||
$keyedRemaps[$key] = $modelRemap;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user