oot/alttp: fix bugs found through MMBN3 testing (#1527)

This commit is contained in:
el-u
2023-03-11 20:15:30 +01:00
committed by GitHub
parent 04e6a8eae8
commit 426a81a065
2 changed files with 7 additions and 11 deletions

View File

@@ -50,7 +50,7 @@ def getHint(item, clearer_hint=False):
return Hint(item, clearText, hintType)
else:
return Hint(item, textOptions, hintType)
elif type(item) is str:
elif isinstance(item, str):
return Hint(item, item, 'generic')
else: # is an Item
return Hint(item.name, item.hint_text, 'item')