Saving work to apply merge changes

Currently moving .name to .Name and things like that from Item
This commit is contained in:
Lucas Nicodemus 2017-04-19 17:12:38 -06:00
parent d50fa2fbc4
commit 2a5efa65ae
No known key found for this signature in database
GPG key ID: CEE668CCE1BF2C7C
7 changed files with 54 additions and 45 deletions

View file

@ -65,7 +65,7 @@ namespace TShockAPI.DB
try
{
database.Query("INSERT INTO ItemBans (ItemName, AllowedGroups) VALUES (@0, @1);",
TShock.Utils.GetItemByName(itemname)[0].name, "");
TShock.Utils.GetItemByName(itemname)[0].Name, "");
if (!ItemIsBanned(itemname, null))
ItemBans.Add(new ItemBan(itemname));
}
@ -81,7 +81,7 @@ namespace TShockAPI.DB
return;
try
{
database.Query("DELETE FROM ItemBans WHERE ItemName=@0;", TShock.Utils.GetItemByName(itemname)[0].name);
database.Query("DELETE FROM ItemBans WHERE ItemName=@0;", TShock.Utils.GetItemByName(itemname)[0].Name);
ItemBans.Remove(new ItemBan(itemname));
}
catch (Exception ex)