From add7c74becb199dab1c9a84cbe6b0dd6b2fc8aab Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 16 Jul 2011 18:16:52 -0600 Subject: [PATCH] Region allow now refreshes the region cache, but no longer operates properly. --- TShockAPI/DB/RegionManager.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/TShockAPI/DB/RegionManager.cs b/TShockAPI/DB/RegionManager.cs index 8d6bedae..cd268f5e 100644 --- a/TShockAPI/DB/RegionManager.cs +++ b/TShockAPI/DB/RegionManager.cs @@ -242,8 +242,14 @@ namespace TShockAPI.DB com.CommandText = "UPDATE Regions SET UserIds=@ids"; com.AddParameter("@ids", MergedIDs); - ReloadAllRegions(); - return (com.ExecuteNonQuery() > 0); + if (com.ExecuteNonQuery() > 0) + { + ReloadAllRegions(); + return true; + } else + { + return false; + } } } catch (Exception ex)