]> git.lizzy.rs Git - worldedit.git/commitdiff
Update wand definition (#129)
authorMT-Modder <MT-Modder@users.noreply.github.com>
Fri, 10 Feb 2017 23:04:04 +0000 (18:04 -0500)
committersfan5 <sfan5@live.de>
Fri, 10 Feb 2017 23:04:04 +0000 (00:04 +0100)
Fixes "maxwear" deprecated warning

worldedit_commands/wand.lua

index 79d9eb2aca4d89b9e2c4b1fa145ed1f6e7811f75..16f926547d73302b645363b7952180a5ef5c1d9c 100644 (file)
@@ -8,9 +8,9 @@ minetest.register_tool(":worldedit:wand", {
                full_punch_interval = 1.0,
                max_drop_level = 0,
                groupcaps={
-                       fleshy={times={[2]=0.80, [3]=0.40}, maxwear=0.05, maxlevel=1},
-                       snappy={times={[2]=0.80, [3]=0.40}, maxwear=0.05, maxlevel=1},
-                       choppy={times={[3]=0.90}, maxwear=0.05, maxlevel=0}
+                       fleshy={times={[2]=0.80, [3]=0.40}, uses=1/0.05, maxlevel=1},
+                       snappy={times={[2]=0.80, [3]=0.40}, uses=1/0.05, maxlevel=1},
+                       choppy={times={[3]=0.90}, uses=1/0.05, maxlevel=0}
                }
        },