Region allow now refreshes the region cache, but no longer operates properly.

This commit is contained in:
Lucas Nicodemus 2011-07-16 18:16:52 -06:00
parent 75e3e58c80
commit add7c74bec

View file

@ -242,8 +242,14 @@ namespace TShockAPI.DB
com.CommandText = "UPDATE Regions SET UserIds=@ids"; com.CommandText = "UPDATE Regions SET UserIds=@ids";
com.AddParameter("@ids", MergedIDs); com.AddParameter("@ids", MergedIDs);
ReloadAllRegions(); if (com.ExecuteNonQuery() > 0)
return (com.ExecuteNonQuery() > 0); {
ReloadAllRegions();
return true;
} else
{
return false;
}
} }
} }
catch (Exception ex) catch (Exception ex)