Skip to content

Commit

Permalink
fix: Spdlog error (#2192)
Browse files Browse the repository at this point in the history
Co-authored-by: Eduardo Dantas <[email protected]>
  • Loading branch information
Luan Luciano and dudantas authored Feb 9, 2024
1 parent 7acb3cd commit 5248cf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ local function copyContainerItem(originalContainer, newContainer)
local originalItem = originalContainer:getItem(i)
local newItem = Game.createItem(originalItem.itemid, originalItem.type)
if not newItem then
Spdlog.error("[questSystem1.copyContainerItem] failed to create item " .. originalItem.itemid)
logger.error("[questSystem1.copyContainerItem] failed to create item: {}", originalItem.itemid)
return false
end
newItem:setActionId(originalItem:getActionId())
Expand Down
4 changes: 2 additions & 2 deletions data/scripts/lib/register_monster_type.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ registerMonsterType.bosstiary = function(mtype, mask)
end
end
if bossClass == nil then
Spdlog.error(string.format("Attempting to register a bosstiary boss without a race. Boss name: %s", mtype:name()))
logger.error("Attempting to register a bosstiary boss without a race. Boss name: {}", mtype:name())
return
end
if mask.bosstiary.bossRaceId then
mtype:bossRaceId(mask.bosstiary.bossRaceId)
else
Spdlog.error(string.format("Attempting to register a bosstiary boss without a raceId. Boss name: %s", mtype:name()))
logger.error("Attempting to register a bosstiary boss without a raceId. Boss name: {}", mtype:name())
end
mtype:bossRace(mask.bosstiary.bossRace, bossClass)
end
Expand Down

0 comments on commit 5248cf0

Please sign in to comment.