Fix NBT name search matching unnamed tags
This commit is contained in:
parent
3284e98034
commit
83e3935007
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user