Skip to content

Commit 10c38ad

Browse files
committed
fix(GM): Fix nil value for logging Explore maps cheat
1 parent 8b98350 commit 10c38ad

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

AzerothCoreAdmin.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,6 @@ function MangAdmin:AddMessage(frame, text, r, g, b, id)
659659
end
660660
-- hook .gps for gridnavigation
661661
for x, y in string.gmatch(text, Strings["ma_GmatchGPS"]) do
662-
message(x)
663-
message(y)
664662
for k,v in pairs(self.db.char.functionQueue) do
665663
if v == "GridNavigate" then
666664
GridNavigate(string.format("%.1f", x), string.format("%.1f", y), nil)

FunctionInit.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ function InitControls()
115115
GM_cheatExploreMapsOnButton,
116116
Locale["ttGM_cheatExploreMapsOn"],
117117
function()
118-
genericCaller(GM_KEY, GM_cheatExploreMapsCommand, 1)
118+
genericCaller(GM_KEY, GM_cheatExploreMapsCommand, "1")
119119
end
120120
)
121121
MangAdmin:PrepareScript(
122122
GM_cheatExploreMapsOffButton,
123123
Locale["ttGM_cheatExploreMapsOff"],
124124
function()
125-
genericCaller(GM_KEY, GM_cheatExploreMapsCommand, 0)
125+
genericCaller(GM_KEY, GM_cheatExploreMapsCommand, "0")
126126
end
127127
)
128128
MangAdmin:PrepareScript(

0 commit comments

Comments
 (0)