1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2024-10-07 03:20:31 +02:00

clear metadata value after repair

This commit is contained in:
OgelGames 2024-01-14 14:50:34 +11:00
parent a02eac82ff
commit 4db71f88f9

View File

@ -93,6 +93,7 @@ pipeworks.register_tube("pipeworks:broken_tube", {
minetest.swap_node(pos, { name = was_node.name, param2 = was_node.param2 })
pipeworks.scan_for_tube_objects(pos)
end
meta:set_string("the_tube_was", "")
else
pipeworks.logger(log_msg.." but original node "..was_node.name.." is not registered anymore.")
minetest.chat_send_player(playername, S("This tube cannot be repaired."))