Move inventory stack hack detection to TSPlayer
Only called in one method, the stack hack detection can move to TSPlayer as it only ever operates on one player. In a future commit, this will replace the stack hack detection OnSecondUpdate() and also set the disabled flag if a player has a hacked stack when called.
This commit is contained in:
parent
a8ad583c8c
commit
b316ba8200
3 changed files with 209 additions and 198 deletions
|
|
@ -1916,7 +1916,9 @@ namespace TShockAPI
|
|||
|
||||
if (!args.Player.HasPermission(Permissions.ignorestackhackdetection))
|
||||
{
|
||||
TShock.HackedInventory(args.Player);
|
||||
// TODO: When checkignores gets merged, this needs to set the hacked item stack flag
|
||||
// and get moved to bouncer
|
||||
args.Player.HasHackedItemStacks(true);
|
||||
}
|
||||
|
||||
if (TShock.Utils.ActivePlayers() + 1 > TShock.Config.MaxSlots &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue