v0.8.2c: added a check to prevent collecting items with no quantity
This commit is contained in:
parent
6a3cd94d22
commit
10b9445f4c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user