Skip to content

Commit

Permalink
Fixed 0x flower
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffinsonDarmawan committed Apr 3, 2024
1 parent 8b0447c commit b6019bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/florizz/objects/Bouquet.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public boolean removeFlower(Flower flowerName, Integer quantity) {
// if flower already in bouquet
if (doesFlowerExist(flowerName)) {
Integer currentQuantity = getFlowerQuantity(flowerName);
Integer newQuantity = currentQuantity - quantity;
int newQuantity = currentQuantity - quantity;
if (newQuantity < 0) {
System.out.println("Tried to remove more than the quantity available, quantity set to 0");
newQuantity = 0;
Expand Down

0 comments on commit b6019bd

Please sign in to comment.