Yeah, that line 151 bit is horrendous. That should be using OnEnter and OnLeave scripts.
I'm thinking this whole AddOn is an example of what not to do when writing code, and depending on what the AddOn does (sorry, haven't checked yet), might be worth rewriting from scratch. Hmm, it needs a complete rewrite regardless; I was musing the worthiness of the venture.
|