Remove dig_up() from cactus.
authorMT-Modder <MT-Modder@users.noreply.github.com>
Mon, 22 Feb 2016 17:19:41 +0000 (12:19 -0500)
committerparamat <mat.gregory@virginmedia.com>
Tue, 23 Feb 2016 20:34:32 +0000 (20:34 +0000)
Digging a cactus leaves the branches hanging. With this change it will no longer happen.

mods/default/nodes.lua

index d00e67acfc615849465895fdfff3f02f9f9b3ba8..1e39be99de633c6aa3d51bacfef50420b3c85671 100644 (file)
@@ -879,10 +879,6 @@ minetest.register_node("default:cactus", {
        groups = {snappy = 1, choppy = 3, flammable = 2},
        sounds = default.node_sound_wood_defaults(),
        on_place = minetest.rotate_node,
-
-       after_dig_node = function(pos, node, metadata, digger)
-               default.dig_up(pos, node, digger)
-       end,
 })
 
 minetest.register_node("default:papyrus", {