aboutsummaryrefslogtreecommitdiff
path: root/share/server
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-19 00:29:41 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-19 00:29:41 +0200
commit77d09552ae7b0fc3a7360c262cab19a6fc83e1e9 (patch)
treecad1c9bf1bf2b6cc8edbdaba53d51c0f10bf90ca /share/server
parentdbaccff476c7f97316d86878b6363c2e2f9d157d (diff)
downloadminetest-77d09552ae7b0fc3a7360c262cab19a6fc83e1e9.tar.gz
minetest-77d09552ae7b0fc3a7360c262cab19a6fc83e1e9.tar.bz2
minetest-77d09552ae7b0fc3a7360c262cab19a6fc83e1e9.zip
Warn instead of completely removing minetest.digprop_whatever() Lua functions
Diffstat (limited to 'share/server')
-rw-r--r--share/server/builtin.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/share/server/builtin.lua b/share/server/builtin.lua
index 9f173f589..b896be958 100644
--- a/share/server/builtin.lua
+++ b/share/server/builtin.lua
@@ -750,6 +750,21 @@ minetest.register_item(":", {
})
--
+-- 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
--