Fix NBT name search matching unnamed tags

This commit is contained in:
David Vierra 2018-08-13 12:38:04 -10:00
parent 3284e98034
commit 83e3935007

View File

@ -443,7 +443,12 @@ class FindReplaceNBT(QtGui.QWidget, Ui_findNBTWidget):
ok = False
elif not (targetValue == tag.value):
ok = False
if searchNames and isinstance(name_or_index, basestring) and not (targetName == name_or_index):
if searchNames:
if not isinstance(name_or_index, basestring):
ok = False
elif (targetName == name_or_index):
ok = True
else:
ok = False
return ok