Proposed fix for #1653 - Testing required

From #1653:
>From latest version (2301)
If a player puts on a banned peice of armour, they get the message to say "You are wearing banned equipment"
After they take it off, the messages stop, but they keep getting disabled.
Solution:
Approx line 1131 in tShock.cs on `OnSecondUpdate` the `tsplayer.IsDisabledForBannedWearable` gets set to true, but it never gets set to false.
Change:
```csharp
if (check != "none")
player.IsDisabledForBannedWearable = true;
```
>To:
```csharp
if (check != "none")
player.IsDisabledForBannedWearable = true;
else
player.IsDisabledForBannedWearable = false;
```

Requires testing
This commit is contained in:
Chris 2018-12-24 13:54:39 +10:30 committed by GitHub
parent da645ccaf5
commit 9975c445f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1130,6 +1130,8 @@ namespace TShockAPI
}
if (check != "none")
player.IsDisabledForBannedWearable = true;
else
player.IsDisabledForBannedWearable = false;
if (player.IsBeingDisabled())
{