editted to save the db BEFORE refreshing the regions.
This commit is contained in:
parent
557d552956
commit
c780993152
1 changed files with 2 additions and 1 deletions
|
|
@ -154,8 +154,9 @@ namespace TShockAPI.DB
|
|||
com.AddParameter("@name", name);
|
||||
com.AddParameter("@bool", state ? 1 : 0);
|
||||
com.AddParameter("@worldid", Main.worldID.ToString());
|
||||
int q = com.ExecuteNonQuery();
|
||||
ReloadAllRegions();
|
||||
return (com.ExecuteNonQuery() > 0);
|
||||
return (q > 0);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue