mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
fix
This commit is contained in:
parent
773d14406c
commit
ef777542b1
2 changed files with 3 additions and 3 deletions
|
|
@ -10,5 +10,5 @@
|
||||||
"model": "X",
|
"model": "X",
|
||||||
"hitbox": [0.15, 0.0, 0.15, 0.7, 0.7, 0.7],
|
"hitbox": [0.15, 0.0, 0.15, 0.7, 0.7, 0.7],
|
||||||
"base:durability": 0.0,
|
"base:durability": 0.0,
|
||||||
"base:drop": []
|
"base:loot": []
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ local function calc_loot(loot_table)
|
||||||
local roll = math.random()
|
local roll = math.random()
|
||||||
|
|
||||||
if roll < chance then
|
if roll < chance then
|
||||||
table.insert(results, {item=loot.item, count=count})
|
table.insert(results, {item=item.index(loot.item), count=count})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return results
|
return results
|
||||||
|
|
@ -31,7 +31,7 @@ function util.block_loot(blockid)
|
||||||
if lootscheme then
|
if lootscheme then
|
||||||
return calc_loot(lootscheme)
|
return calc_loot(lootscheme)
|
||||||
end
|
end
|
||||||
return {{block.get_picking_item(blockid), 1}}
|
return {{item=block.get_picking_item(blockid), count=1}}
|
||||||
end
|
end
|
||||||
|
|
||||||
return util
|
return util
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue