mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 20:43:26 +02:00
Fix to market module reloading, Changed the walk lock period when colliding with a block path object.
This commit is contained in:
@@ -129,7 +129,6 @@ function initProtocol()
|
||||
-- reloading module
|
||||
if g_game.isOnline() then
|
||||
MarketProtocol.registerProtocol()
|
||||
MarketProtocol.updateProtocol(g_game.getProtocolGame())
|
||||
end
|
||||
end
|
||||
|
||||
@@ -138,10 +137,7 @@ function terminateProtocol()
|
||||
onGameEnd = MarketProtocol.unregisterProtocol })
|
||||
|
||||
-- reloading module
|
||||
if not g_game.isOnline() then
|
||||
MarketProtocol.updateProtocol(nil)
|
||||
MarketProtocol.unregisterProtocol()
|
||||
end
|
||||
MarketProtocol.unregisterProtocol()
|
||||
MarketProtocol = nil
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user