Skip to content

Commit ddc8dbe

Browse files
Wide-Catchri-k
authored andcommitted
fix addon breaking changes p2
(cherry picked from commit 3c64084)
1 parent f331ef1 commit ddc8dbe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/main/java/meteordevelopment/meteorclient/utils/misc

src/main/java/meteordevelopment/meteorclient/utils/misc/Pool.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public final class Pool<T> {
1414
private final Queue<T> items = new ArrayDeque<>();
1515
private final Supplier<T> producer;
1616

17-
public Pool(Supplier<T> producer) {
18-
this.producer = producer;
17+
public Pool(Producer<T> producer) {
18+
this.producer = producer::create;
1919
}
2020

2121
public synchronized T get() {

0 commit comments

Comments
 (0)