Add WanderTradesEvent#Pool Constructor with List<ItemListing> and int directly (#10566)

This commit is contained in:
Joseph T. McQuigg authored and GitHub committed 2025-06-23 17:06:32 -07:00
1 parent ddb1e52e99
commit 5e75de5eb7
1 file changed
+6 -2
@@ -43,8 +43,12 @@ public class WandererTradesEvent extends MutableEvent implements InheritableEven
private final List<ItemListing> entries;
public Pool(Pair<ItemListing[], Integer> data) {
this.rolls = data.getRight();
this.entries = new ArrayList<>(Arrays.asList(data.getLeft()));
this(Arrays.asList(data.getLeft()), data.getRight());
}
public Pool(List<ItemListing> entries, int rolls) {
this.rolls = rolls;
this.entries = new ArrayList<>(entries);
}
public int getRolls() {