diff --git a/TShockAPI/DB/RegionManager.cs b/TShockAPI/DB/RegionManager.cs index ad3ea38c..44bcdb91 100644 --- a/TShockAPI/DB/RegionManager.cs +++ b/TShockAPI/DB/RegionManager.cs @@ -618,6 +618,7 @@ namespace TShockAPI.DB DisableBuild = true; WorldID = string.Empty; AllowedIDs = new List(); + AllowedGroups = new List(); } public bool InArea(Rectangle point) @@ -662,8 +663,8 @@ namespace TShockAPI.DB AllowedIDs = id_list; } - public void SetAllowedGroups( String groups ) - { + public void SetAllowedGroups( String groups ) + { // prevent null pointer exceptions if (!string.IsNullOrEmpty(groups)) { @@ -674,11 +675,7 @@ namespace TShockAPI.DB AllowedGroups = groupArr; } - else - { - AllowedGroups = new List(); - } - } + } public void RemoveID(int id) {