Skip to content

Commit

Permalink
fix(server/items): add durability to items
Browse files Browse the repository at this point in the history
See #1415.
  • Loading branch information
thelindat committed Jul 25, 2023
1 parent d1518ca commit caa5569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/items/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ end
---@param ostime? number
---@return boolean? removed
function Items.UpdateDurability(inv, slot, item, value, ostime)
local durability = slot.metadata.durability
local durability = slot.metadata.durability or value

if not durability then return end

Expand Down

0 comments on commit caa5569

Please sign in to comment.