fix: Changes C# version to 11 (#1461)

This commit is contained in:
Kamron Batman 2023-08-16 20:12:56 -07:00 • committed by GitHub
parent 2eebf4f48d
commit 2c8d54549c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 14 deletions

View file

@ -2121,12 +2121,16 @@ namespace Server.Multis
}
}
private class MoveTimer(BaseBoat boat, TimeSpan delay, TimeSpan interval, int single)
: Timer(delay, interval, single)
private class MoveTimer : Timer
{
private readonly BaseBoat _boat;
public MoveTimer(BaseBoat boat, TimeSpan delay, TimeSpan interval, int single) : base(delay, interval, single) =>
_boat = boat;
protected override void OnTick()
{
boat?.StopBoat();
_boat?.StopBoat();
}
}