diff options
author | VanessaE <vanessaezekowitz@gmail.com> | 2013-03-18 20:14:27 -0700 |
---|---|---|
committer | VanessaE <vanessaezekowitz@gmail.com> | 2013-03-18 20:14:27 -0700 |
commit | 519a99f44e4b6bad4c77088f55b667b12939868e (patch) | |
tree | f02b0d11f00980c151a74c1f382db915408e26e4 /init.lua | |
parent | 26422fec7a7f84833072f151bb0cf39721447245 (diff) | |
parent | 6889ab0419bdb2bc9bde4fd5b396f1ef84a5f969 (diff) |
Merge pull request #20 from Uberi/master
Add inventory images to speed up load times.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -248,15 +248,18 @@ for zp = 0, 1 do if pname ~= "110000" then pgroups = {snappy=3, pipe=1, not_in_creative_inventory=1} pipedesc = "Pipe segment (empty, "..pname..")... You hacker, you." + image = "pipeworks_plain.png" else pgroups = {snappy=3, pipe=1} pipedesc = "Pipe segment" + image = nil end minetest.register_node("pipeworks:pipe_"..pname.."_empty", { description = pipedesc, drawtype = "nodebox", tiles = pipes_fix_image_names(outimgs, "_empty"), + inventory_image = image, paramtype = "light", selection_box = { type = "fixed", @@ -287,6 +290,7 @@ for zp = 0, 1 do description = "Pipe segment (loaded, "..pname..")... You hacker, you.", drawtype = "nodebox", tiles = pipes_fix_image_names(outimgs, "_loaded"), + inventory_image = image, paramtype = "light", selection_box = { type = "fixed", |