Преглед на файлове

【优化】发送消息到游戏服,objId字符串格式

johnclot69 преди 1 година
родител
ревизия
1ead2afcb1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Common/CommonAI/Zone/ZoneEditor/EventTrigger/Actions.Zone.cs

+ 1 - 1
Common/CommonAI/Zone/ZoneEditor/EventTrigger/Actions.Zone.cs

@@ -263,7 +263,7 @@ namespace CommonAI.Zone.ZoneEditor.EventTrigger
                     {
                         return;
                     }
-                    msg = msg.Replace("objid", $"{unit.get_id()}");
+                    msg = msg.Replace("{objid}", $"{unit.get_id()}");
                 }
                 api.ZoneAPI.SendMessageToGameServer(msg);
             }