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

prevent being able to place "loaded" and "on" items

(forces them to "empty" and "off")
This commit is contained in:
Vanessa Ezekowitz
2017-03-17 11:04:59 -04:00
parent 1bfc2d4e5b
commit 64b2611d8a
2 changed files with 6 additions and 19 deletions

View File

@ -107,6 +107,7 @@ for index, connects in ipairs(cconnects) do
walkable = true,
drop = "pipeworks:pipe_1_empty",
after_place_node = function(pos)
minetest.set_node(pos, { name = "pipeworks:pipe_"..index.."_empty" })
pipeworks.scan_for_pipe_objects(pos)
end,
after_dig_node = function(pos)