Fix automatically disabling all players
In rewriting Disable, I accidentally implemented logic that disabled all players for having banned armor. This is now fixed.
This commit is contained in:
parent
a76144b503
commit
b93bab65d7
1 changed files with 2 additions and 2 deletions
|
|
@ -1081,7 +1081,6 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
else if (!Main.ServerSideCharacter || (Main.ServerSideCharacter && player.IsLoggedIn))
|
else if (!Main.ServerSideCharacter || (Main.ServerSideCharacter && player.IsLoggedIn))
|
||||||
{
|
{
|
||||||
string check = "none";
|
|
||||||
if (!player.HasPermission(Permissions.ignorestackhackdetection))
|
if (!player.HasPermission(Permissions.ignorestackhackdetection))
|
||||||
{
|
{
|
||||||
player.IsDisabledForStackDetection = player.HasHackedItemStacks(shouldWarnPlayer: true);
|
player.IsDisabledForStackDetection = player.HasHackedItemStacks(shouldWarnPlayer: true);
|
||||||
|
|
@ -1140,7 +1139,8 @@ namespace TShockAPI
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
player.IsDisabledForBannedWearable = true;
|
if (check != "none")
|
||||||
|
player.IsDisabledForBannedWearable = true;
|
||||||
|
|
||||||
if (player.IsBeingDisabled())
|
if (player.IsBeingDisabled())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue