fix: missing damage value in tl3
This commit is contained in:
@@ -79,6 +79,7 @@ local function handleTransaction(transaction)
|
|||||||
to = transaction.to,
|
to = transaction.to,
|
||||||
from = transaction.from,
|
from = transaction.from,
|
||||||
value = transaction.value,
|
value = transaction.value,
|
||||||
|
txid = transaction.id,
|
||||||
id = metadata.name,
|
id = metadata.name,
|
||||||
time = math.floor(os.epoch('utc')/1000),
|
time = math.floor(os.epoch('utc')/1000),
|
||||||
recipient = recipient,
|
recipient = recipient,
|
||||||
|
|||||||
@@ -798,15 +798,15 @@ function turtle.getSlot(indexOrId, slots)
|
|||||||
if detail then
|
if detail then
|
||||||
return {
|
return {
|
||||||
name = detail.name,
|
name = detail.name,
|
||||||
damage = detail.damage,
|
damage = detail.damage or 0,
|
||||||
count = detail.count,
|
count = detail.count,
|
||||||
key = detail.name .. ':' .. detail.damage,
|
key = detail.name .. ':' .. (detail.damage or 0),
|
||||||
|
|
||||||
index = indexOrId,
|
index = indexOrId,
|
||||||
|
|
||||||
-- deprecate
|
-- deprecate
|
||||||
qty = detail.count,
|
qty = detail.count,
|
||||||
dmg = detail.damage,
|
dmg = detail.damage or 0,
|
||||||
id = detail.name,
|
id = detail.name,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user