Warn instead of completely removing minetest.digprop_whatever() Lua functions
authorPerttu Ahola <celeron55@gmail.com>
Sun, 18 Mar 2012 22:29:41 +0000 (00:29 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 18 Mar 2012 22:29:41 +0000 (00:29 +0200)
share/server/builtin.lua

index 9f173f5899fef4eff7b258b8734be738b8cd4bda..b896be9586e344386e552a3f367ee54e35bfed28 100644 (file)
@@ -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
 --