Implement named args in item stack hack check
This addresses feedback from @QuiCM and @ijwu, who pointed out that C# allows you to specify the arguments that go into a call during invocation, which dramatically improves readability.
This commit is contained in:
parent
6a7bc4540e
commit
f93ffbc2e7
3 changed files with 13 additions and 13 deletions
|
|
@ -83,7 +83,7 @@ namespace TShockAPI
|
|||
|
||||
if (!args.Player.HasPermission(Permissions.ignorestackhackdetection))
|
||||
{
|
||||
args.Player.IsDisabledForStackDetection = args.Player.HasHackedItemStacks(true);
|
||||
args.Player.IsDisabledForStackDetection = args.Player.HasHackedItemStacks(shouldWarnPlayer: true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue