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:
Lucas Nicodemus 2017-12-21 23:00:09 -07:00
parent 6a7bc4540e
commit f93ffbc2e7
3 changed files with 13 additions and 13 deletions

View file

@ -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);
}
}