Add permission to ignore max HP/MP, add config option for max HP/MP, possibly fix SSC
Fixing SSC is done by sending packet 39 (item disown) to the client. Until a response, which is packet 22, is received from the client, all SSC-related packets are completely ignored. This ensures that the SSC data which is sent is not dirtied due to packets which are processed during RestoreCharacter or slightly afterwards.
This commit is contained in:
parent
7a8422de5c
commit
fd5c696656
5 changed files with 56 additions and 36 deletions
|
|
@ -1166,7 +1166,7 @@ namespace TShockAPI
|
|||
}
|
||||
|
||||
if ((player.State < 10 || player.Dead) && (int) type > 12 && (int) type != 16 && (int) type != 42 && (int) type != 50 &&
|
||||
(int) type != 38 && (int) type != 21)
|
||||
(int) type != 38 && (int) type != 21 && (int) type != 22)
|
||||
{
|
||||
e.Handled = true;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue