Hello IIIaKa,
I bought your plug-in two days ago.
Unfortunately, there is an issue when used with CustomVendingSetup plug-in (from uMod).
When an item is bought from a customized vending machine, that item does not move greatly in the vDelivery market place container.
After debugging, the issue is due to CustomVendingSetup that also tries to move the item in the container after vVending moved it.
A simple fix could consist in calling the "API_IsCustomized" hook provided by CustomVendingSetup plug-in in order to determine if the item should be moved by vVending or not.
I wonder if you will accept to change your code that way at line 709.
if (shopVending == null || CustomVendingSetup == null || !CustomVendingSetup.IsLoaded || !Convert.ToBoolean(CustomVendingSetup.Call("API_IsCustomized", shopVending)))
{
if (!item.MoveToContainer(targetContainer)) {
item.Drop(targetContainer.dropPosition, targetContainer.dropVelocity);
}
onItemPurchased?.Invoke(buyer, item);
}
Regards, WouayNote.