Region allow now refreshes the region cache, but no longer operates properly.
This commit is contained in:
parent
75e3e58c80
commit
add7c74bec
1 changed files with 8 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue