Fix DCU disable
This commit is contained in:
parent
828ee0fde5
commit
71ace99531
1 changed files with 2 additions and 2 deletions
|
|
@ -3035,7 +3035,7 @@ namespace TShockAPI
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == BuffID.DrillMount && TShock.Config.VeryDangerousDoNotChangeEnableDrillContainmentUnit)
|
if (type == BuffID.DrillMount && !TShock.Config.VeryDangerousDoNotChangeEnableDrillContainmentUnit)
|
||||||
{
|
{
|
||||||
TShock.Utils.ForceKick(TShock.Players[id], "The Drill Containment Unit is disabled.");
|
TShock.Utils.ForceKick(TShock.Players[id], "The Drill Containment Unit is disabled.");
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -3335,7 +3335,7 @@ namespace TShockAPI
|
||||||
args.TPlayer.buffTime[i] = 0;
|
args.TPlayer.buffTime[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buff == BuffID.DrillMount && TShock.Config.VeryDangerousDoNotChangeEnableDrillContainmentUnit)
|
if (buff == BuffID.DrillMount && !TShock.Config.VeryDangerousDoNotChangeEnableDrillContainmentUnit)
|
||||||
{
|
{
|
||||||
TShock.Utils.ForceKick(TShock.Players[id], "The Drill Containment Unit is disabled.");
|
TShock.Utils.ForceKick(TShock.Players[id], "The Drill Containment Unit is disabled.");
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue