fix: Fixes various mobile packets and setting serials (#1618)
### Summary - Removes old death packet that isn't used. Doubtful this causes issues with clients that are v4+. - Removes duplicate incoming packets. Again, probably to fix some old client issues, doubtful it affects clients v4+. - Fixes setting serials and entities in props/commands. Note: Disabled setting `Parent` since the new sector code has issues. We shouldn't rely on it anyway! - Reverts a recent change to healthbars that should not have been made. Oops!
This commit is contained in:
parent
332e22f509
commit
6a0fcd62c1
7 changed files with 33 additions and 35 deletions
|
|
@ -42,15 +42,13 @@ namespace Server.Tests.Network
|
|||
AssertThat.Equal(result, expected);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(false)]
|
||||
[InlineData(true)]
|
||||
public void TestDeathStatus(bool dead)
|
||||
[Fact]
|
||||
public void TestDeathStatus()
|
||||
{
|
||||
var expected = new DeathStatus(dead).Compile();
|
||||
var expected = new DeathStatus(false).Compile();
|
||||
|
||||
var ns = PacketTestUtilities.CreateTestNetState();
|
||||
ns.SendDeathStatus(dead);
|
||||
ns.SendDeathStatus();
|
||||
|
||||
var result = ns.SendPipe.Reader.AvailableToRead();
|
||||
AssertThat.Equal(result, expected);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue