Skip to content

Commit

Permalink
#42 Not importing macro texture.
Browse files Browse the repository at this point in the history
There is no apparent way to get the non-calculated texture.
  • Loading branch information
Sellorio committed Oct 4, 2020
1 parent 1a6b789 commit 8206e85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mega-macro-engine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ local function TryImportGlobalMacros()
end

for i=1, numberOfGlobalMacros do
local name, texture, body, _ = MegaMacroApiOverrides.Original.GetMacroInfo(i)
local macro = MegaMacro.Create(name, MegaMacroScopes.Global, texture)
local name, _, body, _ = MegaMacroApiOverrides.Original.GetMacroInfo(i)
local macro = MegaMacro.Create(name, MegaMacroScopes.Global, MegaMacroTexture)

if macro == nil then
return
Expand Down Expand Up @@ -78,8 +78,8 @@ local function TryImportCharacterMacros()
end

for i=1, numberOfCharacterMacros do
local name, texture, body, _ = MegaMacroApiOverrides.Original.GetMacroInfo(i + MacroIndexOffsets.NativeCharacterMacros)
local macro = MegaMacro.Create(name, MegaMacroScopes.Character, texture)
local name, _, body, _ = MegaMacroApiOverrides.Original.GetMacroInfo(i + MacroIndexOffsets.NativeCharacterMacros)
local macro = MegaMacro.Create(name, MegaMacroScopes.Character, MegaMacroTexture)

if macro == nil then
return
Expand Down

0 comments on commit 8206e85

Please sign in to comment.