mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
Rework hotkeys manager, fix many issues on it
This commit is contained in:
@@ -92,7 +92,7 @@ end
|
||||
function online()
|
||||
local player = g_game.getLocalPlayer()
|
||||
if player then
|
||||
local char = player:getName()
|
||||
local char = g_game.getCharacterName()
|
||||
|
||||
local lastCombatControls = g_settings.getNode('LastCombatControls')
|
||||
|
||||
@@ -116,7 +116,7 @@ function offline()
|
||||
|
||||
local player = g_game.getLocalPlayer()
|
||||
if player then
|
||||
local char = player:getName()
|
||||
local char = g_game.getCharacterName()
|
||||
lastCombatControls[char] = {
|
||||
fightMode = g_game.getFightMode(),
|
||||
chaseMode = g_game.getChaseMode(),
|
||||
|
Reference in New Issue
Block a user