1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-06-29 23:00:49 +02:00

fix issue #150 (prevent non-tubes / reinforced tubes from breaking) (#153)

* fix #150

(issue #150)

* tube not tube device

* tntd

* embedded tube is durable

* Update pane_embedded_tube.lua

* Update registration.lua

* Update item_transport.lua

* redundant

* one-way tube is tube

* pipe not tube

* built-in method

* more deduplication

* "=" → " = "
This commit is contained in:
The4codeblocks
2025-05-07 13:05:54 -05:00
committed by GitHub
parent 858154cb78
commit b0496fcd41
4 changed files with 8 additions and 7 deletions

View File

@ -84,6 +84,7 @@ end)
function pipeworks.break_tube(pos)
local node = minetest.get_node(pos)
if core.get_item_group(node.name, "tube") ~= 1 then return end
local meta = minetest.get_meta(pos)
meta:set_string("the_tube_was", minetest.serialize(node))
minetest.swap_node(pos, {name = "pipeworks:broken_tube_1"})