Skip to content

Commit e7fd0ae

Browse files
committed
Resolve merge conflict
1 parent d87fda8 commit e7fd0ae

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

AssettoServer/Commands/Modules/GeneralModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public async Task ShowLegalNotice()
7171
[Command("resetcar"), RequireConnectedPlayer]
7272
public void ResetCarAsync()
7373
{
74-
if (_configuration.Extra is { EnableClientMessages: true, EnableCarReset: true, MinimumCSPVersion: >= CSPVersion.V0_2_3_p211, EnableAi: true })
74+
if (_configuration.Extra is { EnableClientMessages: true, EnableCarReset: true, MinimumCSPVersion: >= CSPVersion.V0_2_8, EnableAi: true })
7575
{
7676
Reply(Client!.EntryCar.TryResetPosition()
7777
? "Position successfully reset"

AssettoServer/Server/ACServer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ public ACServer(
109109

110110
if (_configuration.Extra.EnableCarReset)
111111
{
112-
if (!_configuration.Extra.EnableClientMessages || _configuration.CSPTrackOptions.MinimumCSPVersion < CSPVersion.V0_2_3_p211 || aiSpline == null)
112+
if (!_configuration.Extra.EnableClientMessages || _configuration.CSPTrackOptions.MinimumCSPVersion < CSPVersion.V0_2_8 || aiSpline == null)
113113
{
114114
throw new ConfigurationException(
115-
"Reset car: Minimum required CSP version of 0.2.3-preview211 (2974); Requires enabled client messages; Requires working AI spline");
115+
"Reset car: Minimum required CSP version of 0.2.8 (3424); Requires enabled client messages; Requires working AI spline");
116116
}
117117
}
118118
}

AssettoServer/Server/Configuration/Extra/ACExtraConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public partial class ACExtraConfiguration : ObservableObject
2929
public int MandatoryClientSecurityLevel { get; internal set; }
3030
[YamlMember(Description = "Force headlights on for all cars")]
3131
public bool ForceLights { get; set; }
32-
[YamlMember(Description = "Enable usage of /resetcar to teleport the player to the closest spline point. Requires CSP v0.2.3-preview211 (2974) or later")]
32+
[YamlMember(Description = "Enable usage of /resetcar to teleport the player to the closest spline point. Requires CSP v0.2.8 (3424) or later")]
3333
public bool EnableCarReset { get; set; } = false;
3434
[YamlMember(Description = "Enable vanilla server voting for: Session skip; Session restart")]
3535
public bool EnableSessionVote { get; set; } = true;

AssettoServer/Utils/CSPVersion.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@ public static class CSPVersion
99
public const int V0_1_80_p389 = 2544;
1010
public const int V0_2_0 = 2651;
1111
public const int V0_2_3 = 3044;
12-
public const int V0_2_3_p47 = 2796;
13-
public const int V0_2_3_p211 = 2974;
1412
public const int V0_2_8 = 3424;
1513
}

FastTravelPlugin/FastTravelConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace FastTravelPlugin;
88
[UsedImplicitly(ImplicitUseKindFlags.Assign, ImplicitUseTargetFlags.WithMembers)]
99
public class FastTravelConfiguration : IValidateConfiguration<FastTravelConfigurationValidator>
1010
{
11-
[YamlMember(Description = "Requires CSP version 0.2.3-preview211 (2974) which fixed disabling collisions online. \nSetting this to false will lower the version requirement to 0.2.0 (2651) but clients on versions below 0.2.3-preview211 will not have disabled collisions")]
11+
[YamlMember(Description = "Requires CSP version 0.2.8 (3424) which fixed disabling collisions online. \nSetting this to false will lower the version requirement to 0.2.0 (2651) but clients on versions below 0.2.3-preview211 will not have disabled collisions")]
1212
public bool RequireCollisionDisable { get; set; } = true;
1313

1414
[YamlMember(Description = "Available zoom levels. Last one should to show the full track.\nIf map image is shown, prioritize matching the track to the map image")]

FastTravelPlugin/FastTravelPlugin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public FastTravelPlugin(FastTravelConfiguration configuration,
2626
{
2727
_aiSpline = aiSpline ?? throw new ConfigurationException("FastTravelPlugin does not work with AI traffic disabled");
2828

29-
if (configuration.RequireCollisionDisable && serverConfiguration.CSPTrackOptions.MinimumCSPVersion < CSPVersion.V0_2_3_p211)
29+
if (configuration.RequireCollisionDisable && serverConfiguration.CSPTrackOptions.MinimumCSPVersion < CSPVersion.V0_2_8)
3030
{
31-
throw new ConfigurationException("FastTravelPlugin needs a minimum required CSP version of 0.2.3-preview211 (2974)");
31+
throw new ConfigurationException("FastTravelPlugin needs a minimum required CSP version of 0.2.8 (3424)");
3232
}
3333

3434
if (!configuration.RequireCollisionDisable && serverConfiguration.CSPTrackOptions.MinimumCSPVersion < CSPVersion.V0_2_0)

0 commit comments

Comments
 (0)