summaryrefslogtreecommitdiff
path: root/pipes.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-01-01 13:34:30 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-01-01 13:34:30 -0500
commit501aac7543271b047fcb20e1ecaacc1484ab152c (patch)
tree33ce7e06e2d7e0aa4d93b3ad4c1859a7aa70d95c /pipes.lua
parent82f5ba09fe5a5ab8e9959b30e7d15fcc385a5a3f (diff)
downloadpipeworks-501aac7543271b047fcb20e1ecaacc1484ab152c.tar
pipeworks-501aac7543271b047fcb20e1ecaacc1484ab152c.tar.gz
pipeworks-501aac7543271b047fcb20e1ecaacc1484ab152c.tar.bz2
pipeworks-501aac7543271b047fcb20e1ecaacc1484ab152c.tar.xz
pipeworks-501aac7543271b047fcb20e1ecaacc1484ab152c.zip
fix wield image of pipes
give legacy compat pipes inventory images alias them to real pipes on place fix flicker when placing them
Diffstat (limited to 'pipes.lua')
-rw-r--r--pipes.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/pipes.lua b/pipes.lua
index dab3982..80b8780 100644
--- a/pipes.lua
+++ b/pipes.lua
@@ -65,6 +65,7 @@ for index, connects in ipairs(cconnects) do
tiles = pipeworks.fix_image_names(outimgs, "_empty"),
sunlight_propagates = true,
inventory_image = image,
+ wield_image = image,
paramtype = "light",
paramtype2 = "facedir",
selection_box = {
@@ -127,13 +128,27 @@ if REGISTER_COMPATIBILITY then
local cloaded = "pipeworks:pipe_compatibility_loaded"
minetest.register_node(cempty, {
drawtype = "airlike",
+ sunlight_propagates = true,
+ paramtype = "light",
+ inventory_image = "pipeworks_pipe_inv.png",
+ wield_image = "pipeworks_pipe_inv.png",
+ description = "Pipe Segment (legacy)",
groups = {not_in_creative_inventory = 1, pipe_to_update = 1},
drop = "pipeworks:pipe_1_empty",
+ after_place_node = function(pos)
+ pipeworks.scan_for_pipe_objects(pos)
+ end,
})
minetest.register_node(cloaded, {
drawtype = "airlike",
+ sunlight_propagates = true,
+ paramtype = "light",
+ inventory_image = "pipeworks_pipe_inv.png",
groups = {not_in_creative_inventory = 1, pipe_to_update = 1},
drop = "pipeworks:pipe_1_empty",
+ after_place_node = function(pos)
+ pipeworks.scan_for_pipe_objects(pos)
+ end,
})
for xm = 0, 1 do
for xp = 0, 1 do