My guess: as you're unregistering ADDON_LOADED without checking the addons name both Versions will only work if there are no other addons enabled or if there are no other addons loaded before your addon.
[e] Apart from such bugs imho the second one is just an awkward overcomplicated/redundant way to do things.
Last edited by Duugu : 12-28-14 at 01:33 PM.
|