Do not error() on digprop_* calls but print a warning

This commit is contained in:
Perttu Ahola 2012-03-19 08:23:11 +02:00
parent d24c56fd4b
commit 9101b680c0

View File

@ -753,7 +753,8 @@ minetest.register_item(":", {
-- Default material types -- Default material types
-- --
function digprop_err() function digprop_err()
error("The minetest.digprop_* functions are obsolete and need to be replaced by item groups.") minetest.log("info", debug.traceback())
minetest.log("info", "WARNING: The minetest.digprop_* functions are obsolete and need to be replaced by item groups.")
end end
minetest.digprop_constanttime = digprop_err minetest.digprop_constanttime = digprop_err