summaryrefslogtreecommitdiff
path: root/signal_tubes.lua
diff options
context:
space:
mode:
authorTim <t4im@users.noreply.github.com>2015-01-29 22:36:16 +0100
committerTim <t4im@users.noreply.github.com>2015-01-29 22:38:01 +0100
commit5a79a60e0f592e34433139c16bb02aca65e38d63 (patch)
treee6edad62ac93647dc6416f8b620a0a317a66511e /signal_tubes.lua
parenta98af7bf159a06bb1fd26902ef4c91105aabe2a0 (diff)
downloadpipeworks-5a79a60e0f592e34433139c16bb02aca65e38d63.tar
pipeworks-5a79a60e0f592e34433139c16bb02aca65e38d63.tar.gz
pipeworks-5a79a60e0f592e34433139c16bb02aca65e38d63.tar.bz2
pipeworks-5a79a60e0f592e34433139c16bb02aca65e38d63.tar.xz
pipeworks-5a79a60e0f592e34433139c16bb02aca65e38d63.zip
use the default tube textures as fallback for any missing textures during tube registration
Diffstat (limited to 'signal_tubes.lua')
-rw-r--r--signal_tubes.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/signal_tubes.lua b/signal_tubes.lua
index cf93876..aff486f 100644
--- a/signal_tubes.lua
+++ b/signal_tubes.lua
@@ -3,8 +3,8 @@ if pipeworks.enable_detector_tube then
"pipeworks_detector_tube_plain.png", "pipeworks_detector_tube_plain.png", "pipeworks_detector_tube_plain.png"}
local detector_inv_texture = "pipeworks_detector_tube_inv.png"
local detector_tube_step = 2 * tonumber(minetest.setting_get("dedicated_server_step"))
- pipeworks.register_tube("pipeworks:detector_tube_on", "Detecting Pneumatic Tube Segment on (you hacker you)", detector_plain_textures, pipeworks.noctr_textures,
- pipeworks.end_textures, pipeworks.short_texture, detector_inv_texture,
+ pipeworks.register_tube("pipeworks:detector_tube_on", "Detecting Pneumatic Tube Segment on (you hacker you)",
+ detector_plain_textures, nil, nil, nil, detector_inv_texture,
{tube = {can_go = function(pos, node, velocity, stack)
local meta = minetest.get_meta(pos)
local name = minetest.get_node(pos).name
@@ -39,8 +39,8 @@ if pipeworks.enable_detector_tube then
minetest.after(detector_tube_step, minetest.registered_nodes[name].item_exit, saved_pos)
end
})
- pipeworks.register_tube("pipeworks:detector_tube_off", "Detecting Pneumatic Tube Segment", detector_plain_textures, pipeworks.noctr_textures,
- pipeworks.end_textures, pipeworks.short_texture, detector_inv_texture,
+ pipeworks.register_tube("pipeworks:detector_tube_off", "Detecting Pneumatic Tube Segment",
+ detector_plain_textures, nil, nil, nil, detector_inv_texture,
{tube = {can_go = function(pos, node, velocity, stack)
local node = minetest.get_node(pos)
local name = node.name