syndenbock / MinimapButtonButton

A World of Warcraft addon for collecting minimap buttons
7 stars 3 forks source link

Fix lua errors in TWW Beta #34

Closed enykeev closed 3 months ago

enykeev commented 3 months ago

This PR fixes the lua errors on TWW beta related to deprecation of IsAddOnLoaded API.

syndenbock commented 3 months ago

I added a utility function that uses the C_AddOns namespace if it's available and falls back to the global functions. That way the addon keeps working on Classic, where the C_AddOns namespace does not exist (yet).

You can check the changes in this commit: https://github.com/syndenbock/MinimapButtonButton/commit/0c4b1d8136a7fa08feddd38c328c9c8e2ffb2ebd