Skip to content

Conversation

@lili-ffxi
Copy link
Contributor

@lili-ffxi lili-ffxi commented Sep 7, 2024

Partially reverts #2026.

Previously, gearswap would be disabled by default during addon load, and only be enabled once an userprofile was loaded.
A side effect of this was that the ability of gearswap to enable game commands with a numeric ID for a target (i.e. /ma "Fire V" 123456) was disabled without an userprofile loaded.
#2026 was meant to address this, but in the meantime it broke a bunch of functions that relied on the disabled flag to be aware that gearswap was being loaded.

This change fixes the issue by making gearswap_disabled = true on load again, and setting it to false as desired only once all the addon components have been loaded and the packet information has been fully parsed, solving the issue entirely.

@lili-ffxi lili-ffxi changed the title Update statics.lua [gearswap] Fix issue with packet initialization. Sep 7, 2024
@lili-ffxi lili-ffxi marked this pull request as ready for review September 7, 2024 15:34
@z16 z16 merged commit 8c00a7a into dev Sep 7, 2024
@z16 z16 deleted the lili-ffxi-gearswap-bugfix branch September 7, 2024 18:01
z16 pushed a commit that referenced this pull request Nov 4, 2024
* Update statics.lua

* Update gearswap.lua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants