mirror of
https://github.com/joe7575/tubelib2.git
synced 2025-02-26 05:13:45 +01:00
Fix bug #6 (Spooky connections possible when removing certain nodes)
This commit is contained in:
@ -365,7 +365,7 @@ function Tube:stop_pairing(pos, oldmetadata, sFormspec)
|
||||
local tele_pos = minetest.string_to_pos(oldmetadata.fields.tele_pos)
|
||||
local peer_meta = M(tele_pos)
|
||||
if peer_meta then
|
||||
self:after_place_node(tele_pos, {peer_meta:get_int("tube_dir")})
|
||||
self:after_dig_node(tele_pos, {peer_meta:get_int("tube_dir")})
|
||||
peer_meta:set_string("channel", nil)
|
||||
peer_meta:set_string("tele_pos", nil)
|
||||
peer_meta:set_string("formspec", sFormspec)
|
||||
|
Reference in New Issue
Block a user