attempt at fixing debuff erros in cheat protection - Zidonuke may want to look more into this
This commit is contained in:
parent
22b3cfc86e
commit
d03b2e4fbb
1 changed files with 0 additions and 2 deletions
|
|
@ -546,7 +546,6 @@ namespace TShockAPI
|
||||||
check = "Remove Item " + item.name + " (" + item.stack + ") exceeds max stack of " + item.maxStack;
|
check = "Remove Item " + item.name + " (" + item.stack + ") exceeds max stack of " + item.maxStack;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
player.IgnoreActionsForCheating = check;
|
|
||||||
check = "none";
|
check = "none";
|
||||||
foreach (Item item in player.TPlayer.armor)
|
foreach (Item item in player.TPlayer.armor)
|
||||||
{
|
{
|
||||||
|
|
@ -557,7 +556,6 @@ namespace TShockAPI
|
||||||
check = "Remove Armor/Accessory " + item.name;
|
check = "Remove Armor/Accessory " + item.name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
player.IgnoreActionsForDisabledArmor = check;
|
|
||||||
if (CheckIgnores(player))
|
if (CheckIgnores(player))
|
||||||
{
|
{
|
||||||
player.SetBuff(33, 120); //Weak
|
player.SetBuff(33, 120); //Weak
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue