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

@ -1098,7 +1098,7 @@ namespace TShockAPI
string check = "none";
if (!player.HasPermission(Permissions.ignorestackhackdetection))
{
player.IsDisabledForStackDetection = player.HasHackedItemStacks(true);
player.IsDisabledForStackDetection = player.HasHackedItemStacks(shouldWarnPlayer: true);
}
check = "none";
// Please don't remove this for the time being; without it, players wearing banned equipment will only get debuffed once