ToggleAntiBuild no longer has weird logic statement
This commit is contained in:
parent
b02c99254c
commit
2736ef8af2
1 changed files with 1 additions and 1 deletions
|
|
@ -4251,7 +4251,7 @@ namespace TShockAPI
|
|||
|
||||
private static void ToggleAntiBuild(CommandArgs args)
|
||||
{
|
||||
TShock.Config.DisableBuild = (TShock.Config.DisableBuild == false);
|
||||
TShock.Config.DisableBuild = !TShock.Config.DisableBuild;
|
||||
TSPlayer.All.SendSuccessMessage(string.Format("Anti-build is now {0}.", (TShock.Config.DisableBuild ? "on" : "off")));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue