Remove minetest.digprop_whatever() Lua functions (because they are useless now)
authorPerttu Ahola <celeron55@gmail.com>
Sun, 18 Mar 2012 22:20:50 +0000 (00:20 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 18 Mar 2012 22:20:50 +0000 (00:20 +0200)
share/server/builtin.lua

index 2ec678b70f4548a586029ff851bb567c70d3ecb3..9f173f5899fef4eff7b258b8734be738b8cd4bda 100644 (file)
@@ -749,77 +749,6 @@ minetest.register_item(":", {
        type = "none",
 })
 
---
--- Default material types
---
-
-function minetest.digprop_constanttime(time)
-       return {
-               diggability = "constant",
-               constant_time = time,
-       }
-end
-
-function minetest.digprop_stonelike(toughness)
-       return {
-               diggablity = "normal",
-               weight = toughness * 5,
-               crackiness = 1,
-               crumbliness = -0.1,
-               cuttability = -0.2,
-       }
-end
-
-function minetest.digprop_dirtlike(toughness)
-       return {
-               diggablity = "normal",
-               weight = toughness * 1.2,
-               crackiness = 0,
-               crumbliness = 1.2,
-               cuttability = -0.4,
-       }
-end
-
-function minetest.digprop_gravellike(toughness)
-       return {
-               diggablity = "normal",
-               weight = toughness * 2,
-               crackiness = 0.2,
-               crumbliness = 1.5,
-               cuttability = -1.0,
-       }
-end
-
-function minetest.digprop_woodlike(toughness)
-       return {
-               diggablity = "normal",
-               weight = toughness * 1.0,
-               crackiness = 0.75,
-               crumbliness = -1.0,
-               cuttability = 1.5,
-       }
-end
-
-function minetest.digprop_leaveslike(toughness)
-       return {
-               diggablity = "normal",
-               weight = toughness * (-0.5),
-               crackiness = 0,
-               crumbliness = 0,
-               cuttability = 2.0,
-       }
-end
-
-function minetest.digprop_glasslike(toughness)
-       return {
-               diggablity = "normal",
-               weight = toughness * 0.1,
-               crackiness = 2.0,
-               crumbliness = -1.0,
-               cuttability = -1.0,
-       }
-end
-
 --
 -- Creative inventory
 --