Skip to content

Commit

Permalink
Fix Oder Imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Detlev1 committed Feb 13, 2024
1 parent c667a60 commit f644c3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/dev/meyi/bn/handlers/ChestTickHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static void updateBazaarOrders(IInventory chest) {
break;
}
}
if (creator.equals(playerName)) {
if (creator.equals(playerName) || creator.isEmpty()) { //isEmpty for non Coop Islands
if (lore.get(4).toLowerCase().contains("expire") || lore.get(5).toLowerCase().contains("expire")) {
continue;
}
Expand All @@ -114,6 +114,7 @@ public static void updateBazaarOrders(IInventory chest) {
if (newOrder.getAmountRemaining() != 0) {
BazaarNotifier.orders.add(newOrder);
verifiedOrders = Arrays.copyOf(verifiedOrders, verifiedOrders.length + 1);
verifiedOrders[verifiedOrders.length-1] = 1;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/dev/meyi/bn/json/Order.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class Order {
public int startAmount;
public double pricePerUnit;
public String priceString;
public OrderStatus orderStatus = OrderStatus.BEST;
public OrderStatus orderStatus = OrderStatus.SEARCHING;
public double orderValue;
public OrderType type;
private int amountRemaining;
Expand Down

0 comments on commit f644c3b

Please sign in to comment.