mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 20:07:21 +01:00
fix not sending update when hat/visor/weaponstate has changed between jobchanges
This commit is contained in:
parent
307c90f40e
commit
6b9d79b88d
2 changed files with 3 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<Authors></Authors>
|
||||
<Company></Company>
|
||||
<Version>0.2.4.0</Version>
|
||||
<Version>0.2.5.0</Version>
|
||||
<Description></Description>
|
||||
<Copyright></Copyright>
|
||||
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>
|
||||
|
|
|
|||
|
|
@ -103,14 +103,14 @@ namespace MareSynchronos.Models
|
|||
var newWeaponOrVisorState = Marshal.ReadByte((IntPtr)customizeData + 31, 0);
|
||||
if (newHatState != HatState)
|
||||
{
|
||||
if (HatState != null) DoNotSendUpdate = true;
|
||||
if (HatState != null && !hasChanges) DoNotSendUpdate = true;
|
||||
HatState = newHatState;
|
||||
hasChanges = true;
|
||||
}
|
||||
|
||||
if (newWeaponOrVisorState != VisorWeaponState)
|
||||
{
|
||||
if (VisorWeaponState != null) DoNotSendUpdate = true;
|
||||
if (VisorWeaponState != null && !hasChanges) DoNotSendUpdate = true;
|
||||
VisorWeaponState = newWeaponOrVisorState;
|
||||
hasChanges = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue