浏览代码

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 3 年之前
父节点
当前提交
6e2fc09aa3
共有 1 个文件被更改,包括 2 次插入1 次删除
  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}";