Преглед изворни кода

【优化】发送消息到游戏服,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);
             }