skip WI matches on no text

This commit is contained in:
ebolam
2022-10-17 19:29:54 -04:00
parent df422575ba
commit 3ec3744792

View File

@@ -1144,6 +1144,8 @@ class KoboldStoryRegister(object):
action = self.actions[action_id]['wi_highlighted_text']
else:
action = self.story_settings.prompt_wi_highlighted_text
if action['text'] == "":
return
i=0
while i < len(action):
if action[i]['WI matches'] is None and key in action[i]['text']: