From b8e27678b06a9685c8581298cc35fa8b7ec0e3a1 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Sun, 5 Jul 2020 16:19:57 -0700 Subject: [PATCH] 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. --- basic_machines/quarry.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basic_machines/quarry.lua b/basic_machines/quarry.lua index 9250f4e..c7e6df1 100644 --- a/basic_machines/quarry.lua +++ b/basic_machines/quarry.lua @@ -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