end
}},
on_punch = function(pos, node, puncher)
- fdir = minetest.get_node(pos).param2
+ local fdir = minetest.get_node(pos).param2
minetest.add_node(pos, { name = "pipeworks:pump_"..states[3-s], param2 = fdir })
end
})
end
}},
on_punch = function(pos, node, puncher)
- fdir = minetest.get_node(pos).param2
+ local fdir = minetest.get_node(pos).param2
minetest.add_node(pos, { name = "pipeworks:valve_"..states[3-s].."_empty", param2 = fdir })
end
})
end
}},
on_punch = function(pos, node, puncher)
- fdir = minetest.get_node(pos).param2
+ local fdir = minetest.get_node(pos).param2
minetest.add_node(pos, { name = "pipeworks:valve_off_empty", param2 = fdir })
end
})