editted to save the db BEFORE refreshing the regions.

This commit is contained in:
Zack 2011-07-19 09:36:36 -07:00
parent 557d552956
commit c780993152

View file

@ -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)