diff --git a/data-canary/scripts/movements/tiles.lua b/data-canary/scripts/movements/tiles.lua index 8deccc1823a..5f0f74e2c80 100644 --- a/data-canary/scripts/movements/tiles.lua +++ b/data-canary/scripts/movements/tiles.lua @@ -33,7 +33,7 @@ function tile.onStepIn(creature, item, position, fromPosition) local depotItem = playerPosition:getTile():getItemByType(ITEM_TYPE_DEPOT) if depotItem ~= nil then local depotItems = 0 - for id = 1, configManager.getNumber("depotBoxes") do + for id = 1, configManager.getNumber(configKeys.DEPOT_BOXES) do depotItems = depotItems + player:getDepotChest(id, true):getItemHoldingCount() end player:sendTextMessage(MESSAGE_FAILURE, "Your depot contains " .. depotItems .. " item" .. (depotItems > 1 and "s." or ".") .. "\ diff --git a/data-otservbr-global/scripts/movements/others/tiles.lua b/data-otservbr-global/scripts/movements/others/tiles.lua index 9773d74d18a..b797f0380a3 100644 --- a/data-otservbr-global/scripts/movements/others/tiles.lua +++ b/data-otservbr-global/scripts/movements/others/tiles.lua @@ -33,7 +33,7 @@ function tiles.onStepIn(creature, item, position, fromPosition) if depotItem ~= nil then local depotItems = 0 - for id = 1, configManager.getNumber("depotBoxes") do + for id = 1, configManager.getNumber(configKeys.DEPOT_BOXES) do depotItems = depotItems + player:getDepotChest(id, true):getItemHoldingCount() end