Deleting event if it isn't on passable terrain (Solved)

I have a setup where events are spawned randomly across regions which also randomize the tiles, and sometimes these events spawn on walls and gaps. How do I delete any events if it isn't on passable terrain? Preferably just moving them to nearest passable but they have unfixed ID's so that's probably too complicated?
Rather than doing that, I would look at whatever script you're using that spawns the events, and make sure they only spawn on passable terrain.
Yes, silly me, Galv's spawner already does this. I just had it set up poorly.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/deleting-event-if-it-isnt-on-passable-terrain-solved.100926/