fix(GetDataHandlers): handle and ignore NpcItemStrike(msgid 24)
This commit is contained in:
parent
8d186bbdcb
commit
740c5c9250
2 changed files with 9 additions and 0 deletions
|
|
@ -95,6 +95,7 @@ namespace TShockAPI
|
||||||
{ PacketTypes.TileSendSquare, HandleSendTileRect },
|
{ PacketTypes.TileSendSquare, HandleSendTileRect },
|
||||||
{ PacketTypes.ItemDrop, HandleItemDrop },
|
{ PacketTypes.ItemDrop, HandleItemDrop },
|
||||||
{ PacketTypes.ItemOwner, HandleItemOwner },
|
{ PacketTypes.ItemOwner, HandleItemOwner },
|
||||||
|
{ PacketTypes.NpcItemStrike, HandleNpcItemStrike },
|
||||||
{ PacketTypes.ProjectileNew, HandleProjectileNew },
|
{ PacketTypes.ProjectileNew, HandleProjectileNew },
|
||||||
{ PacketTypes.NpcStrike, HandleNpcStrike },
|
{ PacketTypes.NpcStrike, HandleNpcStrike },
|
||||||
{ PacketTypes.ProjectileDestroy, HandleProjectileKill },
|
{ PacketTypes.ProjectileDestroy, HandleProjectileKill },
|
||||||
|
|
@ -2945,6 +2946,13 @@ namespace TShockAPI
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static bool HandleNpcItemStrike(GetDataHandlerArgs args)
|
||||||
|
{
|
||||||
|
// Never sent by vanilla client, ignore this
|
||||||
|
TShock.Log.ConsoleDebug(GetString("GetDataHandlers / HandleNpcItemStrike surprise packet! Someone tell the TShock team! {0}", args.Player.Name));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
private static bool HandleProjectileNew(GetDataHandlerArgs args)
|
private static bool HandleProjectileNew(GetDataHandlerArgs args)
|
||||||
{
|
{
|
||||||
short ident = args.Data.ReadInt16();
|
short ident = args.Data.ReadInt16();
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,7 @@ Use past tense when adding new entries; sign your name off when you add or chang
|
||||||
* Fixed incorrect validating range in `TileRectMatch.MatchRemoval`.
|
* Fixed incorrect validating range in `TileRectMatch.MatchRemoval`.
|
||||||
* Fixed tile rect changes (e.g. turning on and off campfires) are not synced between clients.
|
* Fixed tile rect changes (e.g. turning on and off campfires) are not synced between clients.
|
||||||
* Fixed unable to place Hat Rack without permission `tshock.ignore.sendtilesquare`.
|
* Fixed unable to place Hat Rack without permission `tshock.ignore.sendtilesquare`.
|
||||||
|
* Updated `GetDataHandlers` to ignore `NpcItemStrike(msgid 24)`, which should never be sent by a vanilla client. (@LaoSparrow)
|
||||||
|
|
||||||
## TShock 5.2.1
|
## TShock 5.2.1
|
||||||
* Updated `TSPlayer.GodMode`. (@AgaSpace)
|
* Updated `TSPlayer.GodMode`. (@AgaSpace)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue