Merge pull request #10 from programmerjake/patch-1

fix quarry returning unknown item when mining clay block
This commit is contained in:
Joachim Stolberg 2020-07-06 19:09:36 +02:00 committed by GitHub
commit 474e73c8d4
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 inv = M(pos):get_inventory()
if inv:room_for_item("main", {name = item_name}) then
inv:add_item("main", {name = item_name})
if inv:room_for_item("main", item_name) then
inv:add_item("main", item_name)
return true
end
return false