Fix Copilot mixup

This commit is contained in:
Dylan K. Taylor 2022-07-07 19:54:04 +01:00
parent 56e6a55645
commit 419b21281d
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -61,7 +61,7 @@ final class LegacyBlockStateMapper{
throw new \InvalidArgumentException("A mapping for $stringId:$meta already exists");
}
$this->mappingTable[$stringId][$meta] = $stateData;
$this->legacyNumericIdMap->add($intId, $stringId);
$this->legacyNumericIdMap->add($stringId, $intId);
}
public static function loadFromString(string $data, LegacyBlockIdToStringIdMap $idMap, BlockStateUpgrader $blockStateUpgrader) : self{