Closed Aproxia-dev closed 1 year ago
Yeah, the previous LUA environment doesn't seem to get "discarded" on Switchy's side when an avatar reload occurs.
speaking of the SwitchyFiguraAPI, there's a small mistake in the documentation, where on this line, the oldPreset and newPreset are swapped.
So this is theoretically fixed in 2.6.4 so please give it a try! I have no way of testing myself.
When you load an avatar that uses the SwitchyFiguraAPI, and then reload it or load a different one, the listening functions from the first loaded avatar don't get removed.
This leads to the functions being ran multiple times after a switch, or the functions get ran while the avatar that uses the API isn't loaded anymore.