Parcourir la source

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

johnclot69 il y a 1 an
Parent
commit
1ead2afcb1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);
             }