Bladeren bron

Fix logic for converting MM 23.0+ myroom prop

MM 23.0+ serializes myroomcustom props in this format "MYR_#" where # is
the ID of the prop. Getting myroomcustom placement data with "MYR_#" as
the key does not make sense.
habeebweeb 4 jaren geleden
bovenliggende
commit
6e2fc09aa3
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      Converter/Program.cs

+ 2 - 1
Converter/Program.cs

@@ -458,7 +458,8 @@ namespace COM3D2.MeidoPhotoStudio.Converter
                     else if (assetName.StartsWith("MYR_"))
                     {
                         // MM 23.0+ my room creative prop
-                        PlacementData.Data data = myrAssetNameToData[assetName];
+                        int assetID = int.Parse(assetName.Replace("MYR_", string.Empty));
+                        PlacementData.Data data = PlacementData.GetData(assetID);
                         string asset = string.IsNullOrEmpty(data.assetName) ? data.resourceName : data.assetName;
 
                         assetName = $"{assetName}#{asset}";