summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony <azhang9@gmail.com>2013-03-18 23:00:36 -0300
committerAnthony <azhang9@gmail.com>2013-03-18 23:00:36 -0300
commit1695a18641be00baef9bfb1ca79d413bc1ae791d (patch)
tree88571fa8380c099a999a64a8c3f0edcd0ef72b8a
parent65c4ffde7b6078531a20cc3f03931549323233bd (diff)
downloadpipeworks-1695a18641be00baef9bfb1ca79d413bc1ae791d.tar
pipeworks-1695a18641be00baef9bfb1ca79d413bc1ae791d.tar.gz
pipeworks-1695a18641be00baef9bfb1ca79d413bc1ae791d.tar.bz2
pipeworks-1695a18641be00baef9bfb1ca79d413bc1ae791d.tar.xz
pipeworks-1695a18641be00baef9bfb1ca79d413bc1ae791d.zip
Add inventory images for old pipes.
-rw-r--r--oldpipes.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/oldpipes.lua b/oldpipes.lua
index 90c8a27..0892436 100644
--- a/oldpipes.lua
+++ b/oldpipes.lua
@@ -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 = {