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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue