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 7ef737d commit 0f296d7
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 @@ -212,6 +212,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 @@ -358,6 +360,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 @@ -368,6 +372,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 0f296d7

Please sign in to comment.