mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
...
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user