Skip to content

Commit

Permalink
stairs: Add deprecation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbea committed Apr 9, 2020
1 parent de529f6 commit 172ccf0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mods/stairs/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ end

function stairs.register_stair(subname, recipeitem, groups, images, description,
sounds, worldaligntex)
minetest.log("warning", "stairs.register_stair() is " ..
"deprecated, use stairs.register_stair_type() instead.")
return stairs.register_stair_type(subname, recipeitem, groups, images,
description, sounds, worldaligntex, nil, nil)
end
Expand Down Expand Up @@ -348,6 +350,8 @@ end

function stairs.register_stair_inner(subname, recipeitem, groups, images,
description, sounds, worldaligntex, full_description)
minetest.log("warning", "stairs.register_stair_inner() is " ..
"deprecated, use stairs.register_stair_type() instead.")
return stairs.register_stair_type(subname, recipeitem, groups, images,
description, sounds, worldaligntex, full_description, "inner")
end
Expand All @@ -358,6 +362,8 @@ end

function stairs.register_stair_outer(subname, recipeitem, groups, images,
description, sounds, worldaligntex, full_description)
minetest.log("warning", "stairs.register_stair_outer() is " ..
"deprecated, use stairs.register_stair_type() instead.")
return stairs.register_stair_type(subname, recipeitem, groups, images,
description, sounds, worldaligntex, full_description, "outer")
end
Expand Down

0 comments on commit 172ccf0

Please sign in to comment.