diff --git a/corn-hud.lua b/corn-hud.lua index 58a1521..69b3178 100644 --- a/corn-hud.lua +++ b/corn-hud.lua @@ -32,7 +32,8 @@ function main() if server == "" then thisScript():unload() end - iniName = string.format("cornHUD-%s", server) + iniName = string.format("corn-%s", server) + local x1, y1 = convertGameScreenCoordsToWindowScreenCoords(14.992679595947, 274.75) ini = inicfg.load({ ['Farm 0'] = { corn = 0, @@ -84,8 +85,8 @@ function main() Settings = { Key1='VK_RBUTTON', Key2='VK_MENU', - X=0, - Y=0 + X=x1, + Y=y1 }, }, iniName) inicfg.save(ini, iniName)