mirror of
https://github.com/joe7575/tubelib2.git
synced 2024-08-20 05:24:05 +02:00
bugfix
This commit is contained in:
parent
fe72e64762
commit
3dd241d28a
@ -166,7 +166,7 @@ end
|
|||||||
function Tube:update_secondary_node(fpos,fdir, npos,ndir)
|
function Tube:update_secondary_node(fpos,fdir, npos,ndir)
|
||||||
-- [s]<-[n]----[f]->[s]
|
-- [s]<-[n]----[f]->[s]
|
||||||
local fpos2, node = self:get_node(fpos, fdir)
|
local fpos2, node = self:get_node(fpos, fdir)
|
||||||
if minetest.registered_nodes[node.name] and
|
if self.secondary_node_names[node.name] and
|
||||||
minetest.registered_nodes[node.name].tubelib2_on_update then
|
minetest.registered_nodes[node.name].tubelib2_on_update then
|
||||||
local npos2 = self:get_pos(npos, ndir)
|
local npos2 = self:get_pos(npos, ndir)
|
||||||
if vector.equals(npos2, fpos2) then -- last tube removed?
|
if vector.equals(npos2, fpos2) then -- last tube removed?
|
||||||
|
Loading…
Reference in New Issue
Block a user