fix: bug in universal search - dict has no lower() method
- Remove incorrect .lower() call on dictionary - Fix type inference logic
This commit is contained in:
parent
0b34cea4d7
commit
5e08f56fb2
|
|
@ -494,11 +494,11 @@ class UniversalSearchPlugin(BasePlugin):
|
||||||
return "Weapon"
|
return "Weapon"
|
||||||
elif 'protection' in item or 'durability' in item:
|
elif 'protection' in item or 'durability' in item:
|
||||||
return "Armor"
|
return "Armor"
|
||||||
elif 'hitpoints' in item or 'damage' in item:
|
elif 'hitpoints' in item:
|
||||||
return "Mob"
|
return "Mob"
|
||||||
elif 'x' in item and 'y' in item:
|
elif 'x' in item and 'y' in item:
|
||||||
return "Location"
|
return "Location"
|
||||||
elif 'qr' in item or 'click' in item.lower():
|
elif 'qr' in item or 'click' in item:
|
||||||
return "Blueprint"
|
return "Blueprint"
|
||||||
elif 'category' in item:
|
elif 'category' in item:
|
||||||
return item['category']
|
return item['category']
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue