summaryrefslogtreecommitdiff
path: root/oldpipes.lua
diff options
context:
space:
mode:
authorVanessaE <vanessaezekowitz@gmail.com>2013-03-18 20:14:27 -0700
committerVanessaE <vanessaezekowitz@gmail.com>2013-03-18 20:14:27 -0700
commit519a99f44e4b6bad4c77088f55b667b12939868e (patch)
treef02b0d11f00980c151a74c1f382db915408e26e4 /oldpipes.lua
parent26422fec7a7f84833072f151bb0cf39721447245 (diff)
parent6889ab0419bdb2bc9bde4fd5b396f1ef84a5f969 (diff)
downloadpipeworks-519a99f44e4b6bad4c77088f55b667b12939868e.tar
pipeworks-519a99f44e4b6bad4c77088f55b667b12939868e.tar.gz
pipeworks-519a99f44e4b6bad4c77088f55b667b12939868e.tar.bz2
pipeworks-519a99f44e4b6bad4c77088f55b667b12939868e.tar.xz
pipeworks-519a99f44e4b6bad4c77088f55b667b12939868e.zip
Merge pull request #20 from Uberi/master
Add inventory images to speed up load times.
Diffstat (limited to 'oldpipes.lua')
-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 = {