MZ Need help with VE Materia plugin: Hiding materia that have a 0 sell value [Solved]

Im working with the the VE Materia System plugin to hide materia that have a 0 sell value. Im working in this section:
Window_MateriaShop.prototype.makeItemList = function()
(I think its the right section for shop selling list.)

I've been trying to add an if statement to that section but cannot figure out how to call the price of a listed materia. Any help would be appreciated.

Here is the plugin:
I have finally solved this.

in the plugin find the line with:
Window_MateriaShop.prototype.makeItemList = function() { this._data = $gameParty.materias().map(function(materia) return materia; }, this); };

and change it to this:
Window_MateriaShop.prototype.makeItemList = function() { this._data = $gameParty.materias().map(function(materia) { if (materia.price() > 1) { return materia;} }, this); };

and make sure ALL 0 cost materia are below any that have a price or it will create gaps in the list.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-ve-materia-plugin-hiding-materia-that-have-a-0-sell-value-solved.158541/