mirror of
https://github.com/edubart/otclient.git
synced 2025-12-13 04:19:46 +01:00
Avoid spr loading freeze when logging
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
function init()
|
||||
if g_game.getClientVersion() ~= 0 then
|
||||
load()
|
||||
end
|
||||
connect(g_game, { onClientVersionChange = load })
|
||||
end
|
||||
|
||||
function terminate()
|
||||
disconnect(g_game, { onClientVersionChange = load })
|
||||
end
|
||||
|
||||
function load()
|
||||
|
||||
Reference in New Issue
Block a user