mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 21:13:26 +02:00
Fix #283 and more:
* Might have fixed death window issue but not confirmed * Stop hotkey window from display while offline * Moved some required features to >= 840 if statement (protocol 840/842 arent supported in otclient yet)
This commit is contained in:
@@ -109,6 +109,9 @@ function offline()
|
||||
end
|
||||
|
||||
function show()
|
||||
if not g_game.isOnline() then
|
||||
return
|
||||
end
|
||||
hotkeysWindow:show()
|
||||
hotkeysWindow:raise()
|
||||
hotkeysWindow:focus()
|
||||
@@ -190,7 +193,6 @@ function save()
|
||||
local hotkeys = hotkeySettings
|
||||
|
||||
if perServer then
|
||||
hotkeys[G.host] = {}
|
||||
hotkeys = hotkeys[G.host]
|
||||
end
|
||||
|
||||
@@ -210,6 +212,8 @@ function save()
|
||||
}
|
||||
end
|
||||
|
||||
table.dump(hotkeys)
|
||||
|
||||
hotkeyList = hotkeys
|
||||
g_settings.setNode('game_hotkeys', hotkeySettings)
|
||||
g_settings.save()
|
||||
|
Reference in New Issue
Block a user