fix: adjust CoordinateString based on language

This commit is contained in:
Haselnussbomber 2023-08-01 21:38:33 +02:00
parent d6555007ce
commit 038de41592

View file

@ -130,7 +130,13 @@ public class MapLinkPayload : Payload
var y = Math.Truncate((this.YCoord + fudge) * 10.0f) / 10.0f;
// the formatting and spacing the game uses
return $"( {x:0.0} , {y:0.0} )";
var clientState = Service<ClientState.ClientState>.Get();
return clientState.ClientLanguage switch
{
ClientLanguage.German => $"( {x:0.0}, {y:0.0} )",
ClientLanguage.Japanese => $"({x:0.0}, {y:0.0})",
_ => $"( {x:0.0} , {y:0.0} )",
};
}
}