mirror of
https://github.com/joe7575/tubelib2.git
synced 2024-11-19 22:13:49 +01:00
Test new function 'set_valid_sides'
This commit is contained in:
parent
022fb94475
commit
1beec4d8c5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user