v0.8.2c: added a check to prevent collecting items with no quantity

This commit is contained in:
Evan Debenham 2020-08-25 15:04:57 -04:00
parent 6a3cd94d22
commit 10b9445f4c

View File

@ -169,6 +169,10 @@ public class Item implements Bundlable {
public boolean collect( Bag container ) {
if (quantity <= 0){
return true;
}
ArrayList<Item> items = container.items;
for (Item item:items) {