Fixed dumb error, case-insensitive item name

This commit is contained in:
Lennart Kampshoff
2018-10-28 00:58:09 +02:00
parent 052e632082
commit e06a2a3f34
2 changed files with 14 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ namespace reallife_gamemode.Server.Managers
public static IItem GetItemByName(string name)
{
return itemList.Find(i => i.Name == name);
return itemList.Find(i => i.Name.ToLower() == name.ToLower());
}
public static void RemoveUserItem(Entities.User user, UserItem item)