Skip to content

Conversation

@Fabricio20
Copy link

I've gone ahead and implemented a rudimentary version of what was requested on #109 - I believe some work is still necessary here and I'm willing to do it, though I'd love some guidance.

The goal is to have a separate VoidList for just regex patterns, you can add as many as you want. I also added an offworld toggle to only apply the regex block to offworld characters (this could help preventing accidental matches).

My implementation seems to work just fine though I haven't quite figured out how to force a refresh properly so usability is a bit confusing at the moment. When disabling a regex, blocked characters don't get re-rendered until you walk away and walk back to them, this might be a game limitation though?

I also think maybe incorporating a whitelist check might be a good idea.. If a character matches a regex but is whitelisted it might be wise to allow that?

Let me know what changes you want and I'd be happy to make them! I tried my best to keep performance reasonable given the nature of the operation.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant