Compare commits
4 Commits
5c78143786
...
a0a8ea43cd
Author | SHA1 | Date |
---|---|---|
Anna | a0a8ea43cd | |
Anna | 52128a0209 | |
Anna | 9120e6c2e2 | |
Anna | cf895585ee |
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>1.1.0</Version>
|
||||
<Version>1.2.1</Version>
|
||||
<TargetFramework>net7.0-windows</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
|
|
|
@ -60,7 +60,8 @@ public sealed class Plugin : IDalamudPlugin {
|
|||
}
|
||||
|
||||
private void FrameworkUpdate(IFramework framework) {
|
||||
if (this.Stopwatch.Elapsed < TimeSpan.FromSeconds(this.Config.UpdateFrequency) || this.ClientState.LocalPlayer is not { } localPlayer) {
|
||||
var freq = Math.Max(1, Math.Min(60, this.Config.UpdateFrequency));
|
||||
if (this.Stopwatch.Elapsed < TimeSpan.FromSeconds(freq) || this.ClientState.LocalPlayer is not { } localPlayer) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -111,7 +112,7 @@ public sealed class Plugin : IDalamudPlugin {
|
|||
// shuffle so first player isn't always local player
|
||||
players.Shuffle();
|
||||
|
||||
var update = new Update(2, territory, localPlayer.CurrentWorld.Id, players);
|
||||
var update = new Update(3, territory, localPlayer.CurrentWorld.Id, players);
|
||||
var msgpack = MessagePackSerializer.Serialize(update, MessagePackSerializerOptions.Standard);
|
||||
|
||||
using var mem = new MemoryStream();
|
||||
|
|
Loading…
Reference in New Issue