Skip to content

Commit 3c64084

Browse files
committed
fix addon breaking changes p2
1 parent df3e7ac commit 3c64084

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/meteordevelopment/meteorclient/utils/misc

1 file changed

+2
-2
lines changed

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)