Skip to content

Commit

Permalink
Patch number parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheezer1656 committed Feb 5, 2024
1 parent 587ae55 commit e0b7f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dev/meyi/bn/handlers/ChestTickHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static void updateBazaarOrders(IInventory chest) {
continue;
}
String amountLeftString = lore.get(2).split(" ")[2];
amountLeft = Integer.parseInt(amountLeftString.substring(0, amountLeftString.length() - 1));
amountLeft = Integer.parseInt(amountLeftString.substring(0, amountLeftString.length() - 1).replace(",", ""));
BazaarNotifier.orders.add(new Order(displayName, type, Double.parseDouble(priceString), amountLeft));
}
}
Expand Down

0 comments on commit e0b7f74

Please sign in to comment.