From 1beec4d8c5958dbe11e240021e46680038ccd3eb Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sat, 23 Jan 2021 21:52:41 +0100 Subject: [PATCH] Test new function 'set_valid_sides' --- tube_test.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tube_test.lua b/tube_test.lua index ca0ce60..aa520dc 100644 --- a/tube_test.lua +++ b/tube_test.lua @@ -73,6 +73,9 @@ local Tube = tubelib2.Tube:new({ --debug_info = debug_info, }) +Tube:set_valid_sides("tubelib2:source", {"F"}) +Tube:set_valid_sides("tubelib2:teleporter", {"F"}) + Tube:register_on_tube_update(function(node, pos, out_dir, peer_pos, peer_in_dir) local sdir = tubelib2.dir_to_string(out_dir) if not peer_pos then