Closed wrefgtzweve closed 4 months ago
I feel like there's a more graceful alternative to this. Maybe just check a global to allow this behavior.
It needs to be done in some kind of callback, having a hook that runs when e2 is reloaded carries no downsides, could even be useful for other addons if they do function wraps. There is no good way to detect e2 reloads right now.
That's a fair reason, but it still bugs me that this code is stored in a hook when ideally it shouldn't have to redefine the function twice in the same tick.
Fixes https://github.com/wiremod/wire/issues/3055