fix tube and pipe drops
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Wed, 1 Jan 2014 18:26:25 +0000 (13:26 -0500)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Wed, 1 Jan 2014 18:26:25 +0000 (13:26 -0500)
pipes.lua
tubes.lua

index bc0a1e72b003f76599ac44e43c3b7baa4ebd5542..dab398264918596ad8124a22e0c1e6f15a2c26c4 100644 (file)
--- a/pipes.lua
+++ b/pipes.lua
@@ -128,10 +128,12 @@ if REGISTER_COMPATIBILITY then
        minetest.register_node(cempty, {
                drawtype = "airlike",
                groups = {not_in_creative_inventory = 1, pipe_to_update = 1},
+               drop = "pipeworks:pipe_1_empty",
        })
        minetest.register_node(cloaded, {
                drawtype = "airlike",
                groups = {not_in_creative_inventory = 1, pipe_to_update = 1},
+               drop = "pipeworks:pipe_1_empty",
        })
        for xm = 0, 1 do
        for xp = 0, 1 do
index 06cef17edf4013aaf250ff53de54a15e29150909..3fa9b4a8b162ef83acae943d149505f99014fc94 100644 (file)
--- a/tubes.lua
+++ b/tubes.lua
@@ -179,6 +179,7 @@ pipeworks.register_tube = function(name, desc, plain, noctrs, ends, short, inv,
                                                       basename = name,
                                                       groups = {not_in_creative_inventory = 1, tube_to_update = 1},
                                                       tube = {connect_sides = {front = 1, back = 1, left = 1, right = 1, top = 1, bottom = 1}},
+                                                          drop = name.."_1",
                        })
                        table.insert(pipeworks.tubenodes,cname)
                        for xm = 0, 1 do