From 77d09552ae7b0fc3a7360c262cab19a6fc83e1e9 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 19 Mar 2012 00:29:41 +0200 Subject: [PATCH] Warn instead of completely removing minetest.digprop_whatever() Lua functions --- share/server/builtin.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- -- 2.30.2