Skip to content

Commit 1ba14ee

Browse files
authored
fix: warning quickloot Old protocol (#858)
1 parent 4171190 commit 1ba14ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/game_quickloot/quickloot.lua

+4-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ function quickLootController:onGameStart()
6161
end
6262

6363
function quickLootController:onGameEnd()
64+
if not g_game.getFeature(GameThingQuickLoot) then
65+
return
66+
end
6467
QuickLoot.save()
6568
QuickLoot.toggle()
6669
if quickLootController.ui:isVisible() then
@@ -177,7 +180,7 @@ function QuickLoot.Define()
177180
end)
178181

179182
if not status then
180-
return g_logger.error("Error while saving top bar settings. Data won't be saved. Details: " .. result)
183+
return g_logger.warning("Error while saving QuickLoot settings. Data won't be saved. Details: " .. result)
181184
end
182185

183186
if result:len() > 104857600 then

0 commit comments

Comments
 (0)