From a1de0c6882b727472b4921d87a56c82d84f4ddd4 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Mon, 18 Jun 2018 19:15:59 +0200 Subject: [PATCH] Bug fixed for legacy tubes with length one --- tubelib/tubes.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tubelib/tubes.lua b/tubelib/tubes.lua index 3c0a7d9..2203c6b 100644 --- a/tubelib/tubes.lua +++ b/tubelib/tubes.lua @@ -368,9 +368,14 @@ end local function remote_node(pos, npos) local meta = minetest.get_meta(npos) - local dest_pos = meta:get_string("dest_pos") + + -- legacy tube? + if meta:get_string("dest_pos2") ~= "" then + meta:from_table(nil) + end -- data available + local dest_pos = meta:get_string("dest_pos") if dest_pos ~= "" then local npos = minetest.string_to_pos(dest_pos) local facedir = meta:get_int("facedir")