~vpzom/retail

ef925ae8ab143c9bc7ea839888842b5c73adcec2 — Colin Reeder 2 years ago 9a53401 mc1.16-fabric
Fix checking for space for price with no empty slots
1 files changed, 3 insertions(+), 0 deletions(-)

M src/main/java/click/vpzom/mods/retail/VendingBlockEntity.java
M src/main/java/click/vpzom/mods/retail/VendingBlockEntity.java => src/main/java/click/vpzom/mods/retail/VendingBlockEntity.java +3 -0
@@ 127,6 127,9 @@ public class VendingBlockEntity extends BlockEntity implements Inventory, Extend
						priceFitLeft -= price.getMaxCount();
					}
				}
				else if(stack.getItem() == price.getItem() && ItemStack.areTagsEqual(stack, price)) {
					priceFitLeft -= stack.getMaxCount() - stack.getCount();
				}

				if(priceFitLeft <= 0 && goodCountLeft <= 0) break;
			}