Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
orbea committed Apr 9, 2020
1 parent ecb84a3 commit ac09e13
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mods/stairs/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ function stairs.register_stair_type(subname, recipeitem, groups, images,
return rotate_and_place(itemstack, placer, pointed_thing)
end,
})

-- for replace ABM
if replace and not outer_or_inner then
minetest.register_node(":" .. stairdata[1] .. subname .. "upside_down", {
replace_name = stairdata[1] .. subname,
Expand All @@ -161,12 +163,14 @@ function stairs.register_stair_type(subname, recipeitem, groups, images,
end

if recipeitem then
-- Recipe matches appearence in inventory
minetest.register_craft({
output = stairdata[1] .. subname .. stairdata[2],
recipe = stairdata[5],
})

-- Use stairs to craft full blocks again (1:1)
if not outer_or_inner then
-- Use stairs to craft full blocks again (1:1)
minetest.register_craft({
output = recipeitem .. " 3",
recipe = {
Expand All @@ -175,13 +179,13 @@ function stairs.register_stair_type(subname, recipeitem, groups, images,
},
})
end

-- Fuel
local baseburntime = minetest.get_craft_result({
method = "fuel",
width = 1,
items = {recipeitem}
}).time

if baseburntime > 0 then
minetest.register_craft({
type = "fuel",
Expand Down

0 comments on commit ac09e13

Please sign in to comment.