Added worldID to where clause
This commit is contained in:
parent
8e9bbcc5f9
commit
77998470bc
1 changed files with 2 additions and 1 deletions
|
|
@ -240,9 +240,10 @@ namespace TShockAPI.DB
|
||||||
else
|
else
|
||||||
MergedIDs = MergedIDs + "," + userName;
|
MergedIDs = MergedIDs + "," + userName;
|
||||||
|
|
||||||
com.CommandText = "UPDATE Regions SET UserIds=@ids WHERE RegionName=@name";
|
com.CommandText = "UPDATE Regions SET UserIds=@ids WHERE RegionName=@name AND WorldID=@worldid";
|
||||||
com.AddParameter("@ids", MergedIDs);
|
com.AddParameter("@ids", MergedIDs);
|
||||||
com.AddParameter("@name", regionName);
|
com.AddParameter("@name", regionName);
|
||||||
|
com.AddParameter("@worldid", Main.worldID.ToString());
|
||||||
if (com.ExecuteNonQuery() > 0)
|
if (com.ExecuteNonQuery() > 0)
|
||||||
{
|
{
|
||||||
ReloadAllRegions();
|
ReloadAllRegions();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue