From 172ccf0d933a03a738874b4599c02febeaeb1d82 Mon Sep 17 00:00:00 2001 From: orbea Date: Thu, 9 Apr 2020 00:06:18 -0700 Subject: [PATCH] stairs: Add deprecation warnings. --- mods/stairs/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mods/stairs/init.lua b/mods/stairs/init.lua index f0de8d9ed5..6053e9fb6e 100644 --- a/mods/stairs/init.lua +++ b/mods/stairs/init.lua @@ -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 @@ -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 @@ -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