Custom Restricted Selling plugin conflicting with Yanfly Independent Items

Hello! I'm having a small problem with a custom plugin that someone wrote for me. In this thread, theartofme wrote me a quick Restricted Selling plugin, which makes it so a shop can only buy certain items from the player.

The problem is a conflict with the Independent Item trait of Yanfly's Item Core. Even if an item has been listed under the "BUYONLY" command of the custom plugin, it will not appear as an option if it's been tagged as an Independent Item. If I take off that tag, the item appears as it should. Since I am using Augments, I have to keep them as independent.

Can anyone help me tweak this plugin to make this work?

Original thread: https://forums.rpgmakerweb.com/threads/custom-restricted-selling-plugin-conflicting-with-yanfly-independent-items.122359/