Change the way we ignore packets from clients while swapping with SSC inv.
Add dump for SSC, and terminate the application (maybe).
This commit is contained in:
parent
7fe761bacb
commit
b031f45cb0
3 changed files with 44 additions and 2 deletions
|
|
@ -1284,9 +1284,15 @@ namespace TShockAPI
|
|||
bypassTrashCanCheck = true;
|
||||
}
|
||||
|
||||
if (OnPlayerSlot(plr, slot, stack, prefix, type) || plr != args.Player.Index || slot < 0 || slot > NetItem.maxNetInventory || args.Player.IgnoreSSCPackets)
|
||||
if (OnPlayerSlot(plr, slot, stack, prefix, type) || plr != args.Player.Index || slot < 0 ||
|
||||
slot > NetItem.maxNetInventory)
|
||||
return true;
|
||||
|
||||
if (args.Player.IgnoreSSCPackets)
|
||||
{
|
||||
args.Player.SendData(PacketTypes.PlayerSlot, "", args.Player.Index, slot);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Garabage? Or will it cause some internal initialization or whatever?
|
||||
var item = new Item();
|
||||
item.netDefaults(type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue