Saving work to apply merge changes
Currently moving .name to .Name and things like that from Item
This commit is contained in:
parent
d50fa2fbc4
commit
2a5efa65ae
7 changed files with 54 additions and 45 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue