summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--technic/machines/register/alloy_recipes.lua3
-rw-r--r--technic/tools/planter.lua4
2 files changed, 5 insertions, 2 deletions
diff --git a/technic/machines/register/alloy_recipes.lua b/technic/machines/register/alloy_recipes.lua
index 633e878..0d40b77 100644
--- a/technic/machines/register/alloy_recipes.lua
+++ b/technic/machines/register/alloy_recipes.lua
@@ -50,8 +50,9 @@ if minetest.get_modpath("bakedclay") then
"green", "cyan", "blue", "magenta", "orange",
"violet", "brown", "pink", "dark_grey", "dark_green"}
+ -- the recipe of the bakedclay mod yields 8 blocks, so we'll do two times better
for _,c in ipairs(clay) do
- table.insert(recipes, {"default:clay 8", "dye:" .. c, "bakedclay:" .. c})
+ table.insert(recipes, {"default:clay 8", "dye:" .. c, "bakedclay:" .. c .. " 16"})
end
end
diff --git a/technic/tools/planter.lua b/technic/tools/planter.lua
index c5a22ba..1aefa7c 100644
--- a/technic/tools/planter.lua
+++ b/technic/tools/planter.lua
@@ -143,8 +143,10 @@ local function work_on_soil(itemstack, user, pointed_thing)
ref = nil
}
end
+
- if (minetest.registered_items[meta.selected] or {on_place=minetest.item_place}).on_place(ItemStack({name=meta.selected, count=1}), user, work_pos) then
+ local k = (minetest.registered_items[meta.selected] or {on_place=minetest.item_place}).on_place(ItemStack({name=meta.selected, count=1}), user, work_pos)
+ if k then
c = c + 1
end