fix: missing damage value in tl3

This commit is contained in:
Anavrins
2020-12-26 19:22:46 -05:00
parent 5e275e36ad
commit 0272d2a303
2 changed files with 4 additions and 3 deletions

View File

@@ -798,15 +798,15 @@ function turtle.getSlot(indexOrId, slots)
if detail then
return {
name = detail.name,
damage = detail.damage,
damage = detail.damage or 0,
count = detail.count,
key = detail.name .. ':' .. detail.damage,
key = detail.name .. ':' .. (detail.damage or 0),
index = indexOrId,
-- deprecate
qty = detail.count,
dmg = detail.damage,
dmg = detail.damage or 0,
id = detail.name,
}
end