From: Perttu Ahola Date: Sun, 18 Mar 2012 22:29:41 +0000 (+0200) Subject: Warn instead of completely removing minetest.digprop_whatever() Lua functions X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=77d09552ae7b0fc3a7360c262cab19a6fc83e1e9;p=zefram%2Fminetest%2Fminetest_engine.git Warn instead of completely removing minetest.digprop_whatever() Lua functions --- diff --git a/share/server/builtin.lua b/share/server/builtin.lua index 9f173f58..b896be95 100644 --- a/share/server/builtin.lua +++ b/share/server/builtin.lua @@ -749,6 +749,21 @@ minetest.register_item(":", { type = "none", }) +-- +-- Default material types +-- +function digprop_err() + error("The minetest.digprop_* functions are obsolete and need to be replaced by item groups.") +end + +minetest.digprop_constanttime = digprop_err +minetest.digprop_stonelike = digprop_err +minetest.digprop_dirtlike = digprop_err +minetest.digprop_gravellike = digprop_err +minetest.digprop_woodlike = digprop_err +minetest.digprop_leaveslike = digprop_err +minetest.digprop_glasslike = digprop_err + -- -- Creative inventory --