fix pipe inventory images
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Wed, 1 Jan 2014 18:21:40 +0000 (13:21 -0500)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Wed, 1 Jan 2014 18:21:40 +0000 (13:21 -0500)
pipes.lua
textures/pipeworks_pipe_inv.png [new file with mode: 0644]

index 20f770baeef89ae87f74a15b59b9048041c1e012..bc0a1e72b003f76599ac44e43c3b7baa4ebd5542 100644 (file)
--- a/pipes.lua
+++ b/pipes.lua
@@ -54,7 +54,7 @@ for index, connects in ipairs(cconnects) do
        if #connects == 0 then
                pgroups = {snappy = 3, tube = 1}
                pipedesc = "Pipe segment"
-               image = "pipeworks_plain.png"
+               image = "pipeworks_pipe_inv.png"
        end
        
        --table.insert(pipeworks.tubenodes, name.."_"..tname)
@@ -87,12 +87,13 @@ for index, connects in ipairs(cconnects) do
                end
        })
        
+       local pgroups = {snappy = 3, pipe = 1, not_in_creative_inventory = 1}
+
        minetest.register_node("pipeworks:pipe_"..index.."_loaded", {
                description = pipedesc,
                drawtype = "nodebox",
                tiles = pipeworks.fix_image_names(outimgs, "_loaded"),
                sunlight_propagates = true,
-               inventory_image = image,
                paramtype = "light",
                paramtype2 = "facedir",
                selection_box = {
diff --git a/textures/pipeworks_pipe_inv.png b/textures/pipeworks_pipe_inv.png
new file mode 100644 (file)
index 0000000..567b771
Binary files /dev/null and b/textures/pipeworks_pipe_inv.png differ