From 5a79a60e0f592e34433139c16bb02aca65e38d63 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 29 Jan 2015 22:36:16 +0100 Subject: use the default tube textures as fallback for any missing textures during tube registration --- signal_tubes.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'signal_tubes.lua') 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 -- cgit v1.2.3