Skip to content

Conversation

@Bitwise1057
Copy link

@Bitwise1057 Bitwise1057 commented Sep 2, 2025

Replaced UnitBuff with C_TooltipInfo.GetUnitBuff, since UnitBuff has been deprecated.
Resolved error:
Message: ...nterface/AddOns/CameraOverShoulderFix/correction.lua:297: attempt to call upvalue 'UnitBuff' (a nil value)

Patched an issue with the mount journal API that repeatedly threw:

Message: bad argument #1 to '?' (Usage: local name, spellID, icon, isActive, isUsable, sourceType, isFavorite, isFactionSpecific, faction, shouldHideOnChar, isCollected, mountID, isSteadyFlight = C_MountJourn...)
This error prevented the camera from resetting correctly after dismounting.

Added API checks and error handling as a temporary workaround until a proper fix is in place.

These changes should stop the addon from throwing runtime errors in current builds while maintaining functionality.

Added checks for which API is present.
Added error catch to return default values if mountID is nil or invalid.
@Bitwise1057 Bitwise1057 changed the title Updated Deprecated API Call Circumvented Deprecated API Call / Invalid Arg Error Sep 2, 2025
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.

1 participant