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:
parent
da645ccaf5
commit
9975c445f8
1 changed files with 2 additions and 0 deletions
|
|
@ -1130,6 +1130,8 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
if (check != "none")
|
if (check != "none")
|
||||||
player.IsDisabledForBannedWearable = true;
|
player.IsDisabledForBannedWearable = true;
|
||||||
|
else
|
||||||
|
player.IsDisabledForBannedWearable = false;
|
||||||
|
|
||||||
if (player.IsBeingDisabled())
|
if (player.IsBeingDisabled())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue