fix quarry returning unknown item when mining clay block

quarry used to return an item with the name "default:clay_lump 4" instead of returning 4 clay lump items when mining a clay block.
This commit is contained in:
Jacob Lifshay 2020-07-05 16:19:57 -07:00 committed by GitHub
parent 8664074c45
commit b8e27678b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,8 +167,8 @@ end
local function add_to_inv(pos, item_name) local function add_to_inv(pos, item_name)
local inv = M(pos):get_inventory() local inv = M(pos):get_inventory()
if inv:room_for_item("main", {name = item_name}) then if inv:room_for_item("main", item_name) then
inv:add_item("main", {name = item_name}) inv:add_item("main", item_name)
return true return true
end end
return false return false