Add inventory images for old pipes.
authorAnthony <azhang9@gmail.com>
Tue, 19 Mar 2013 02:00:36 +0000 (23:00 -0300)
committerAnthony <azhang9@gmail.com>
Tue, 19 Mar 2013 02:00:36 +0000 (23:00 -0300)
oldpipes.lua

index 90c8a27573f48053eefae962f3bb54cc15702d39..08924360c41d1173546e4bf55be07bdf9af58081 100644 (file)
@@ -311,14 +311,17 @@ for node in ipairs(nodenames) do
 
        if node ~= 2 then
                pgroups = {snappy=3, pipe=1, not_in_creative_inventory=1}
+               image = "pipeworks_plain.png"
        else
                pgroups = {snappy=3, pipe=1}
+               image = nil
        end
 
        minetest.register_node("pipeworks:"..nodenames[node], {
                description = "Empty Pipe ("..descriptions[node]..")",
                drawtype = "nodebox",
                tiles = fix_image_names(node, "_empty"),
+               inventory_image = image,
                paramtype = "light",
                paramtype2 = "facedir",
                selection_box = {
@@ -340,6 +343,7 @@ for node in ipairs(nodenames) do
                description = "Loaded Pipe ("..descriptions[node]..")",
                drawtype = "nodebox",
                tiles = fix_image_names(node, "_loaded"),
+               inventory_image = image,
                paramtype = "light",
                paramtype2 = "facedir",
                selection_box = {