From b133d6c4705a31a5a594888642df4007708b065f Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 28 Feb 2015 00:56:53 -0700 Subject: [PATCH] ProtectSpawn also uses more logical logic statement --- TShockAPI/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 4b8a5891..aa6dd04d 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -4257,7 +4257,7 @@ namespace TShockAPI private static void ProtectSpawn(CommandArgs args) { - TShock.Config.SpawnProtection = (TShock.Config.SpawnProtection == false); + TShock.Config.SpawnProtection = !TShock.Config.SpawnProtection; TSPlayer.All.SendSuccessMessage(string.Format("Spawn is now {0}.", (TShock.Config.SpawnProtection ? "protected" : "open"))); }