Drop full rubber tree nodes
authorShadowNinja <shadowninja@minetest.net>
Wed, 27 Nov 2013 22:24:01 +0000 (17:24 -0500)
committerShadowNinja <shadowninja@minetest.net>
Wed, 27 Nov 2013 22:24:01 +0000 (17:24 -0500)
technic_worldgen/rubber.lua

index 8e47849ebf1f9b4074eb7367784cebf588aa6362..e47ba514c9e43e7740f0f2514724fc16cd1a9f0e 100644 (file)
@@ -24,8 +24,11 @@ minetest.register_node(":moretrees:rubber_tree_trunk", {
                "technic_rubber_tree_full.png"},
        groups = {tree=1, snappy=1, choppy=2, oddly_breakable_by_hand=1,
                flammable=2},
-       drop = "moretrees:rubber_tree_trunk_empty",
        sounds = default.node_sound_wood_defaults(),
+       after_place_node = function(pos, placer, itemstack)
+               local meta = minetest.get_meta(pos)
+               meta:set_int("placed", 1)
+       end,
 })
 
 minetest.register_node(":moretrees:rubber_tree_trunk_empty", {