mirror of
https://github.com/joe7575/techpack.git
synced 2024-12-26 15:37:30 +01:00
Bug fixed for legacy tubes with length one
This commit is contained in:
parent
4a6c4259d3
commit
a1de0c6882
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user