diff options
author | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-05-08 05:11:52 +0300 |
---|---|---|
committer | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-05-08 05:11:52 +0300 |
commit | bccc2294b6a993e1d10b6c9ede152a7f10c9046a (patch) | |
tree | 963158ae82d062380db987d1f5655ef8ecda7d17 | |
parent | 05deb34779b083ce93583b774636331d7b2549bc (diff) |
recipe adjustment
-rw-r--r-- | technic/machines/register/alloy_recipes.lua | 3 | ||||
-rw-r--r-- | technic/tools/planter.lua | 4 |
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 |