From 71ace99531087f034c79472e1290bffcc1358813 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sun, 5 Jul 2015 15:08:17 -0600 Subject: [PATCH] Fix DCU disable --- TShockAPI/GetDataHandlers.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index e615e3bf..d49e7293 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -3035,7 +3035,7 @@ namespace TShockAPI 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."); return true; @@ -3335,7 +3335,7 @@ namespace TShockAPI 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."); return true;