Explorar el Código

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 hace 4 años
padre
commit
6e2fc09aa3
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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}";