Skip to content

Commit 6cd7b5b

Browse files
committed
redo
1 parent e395631 commit 6cd7b5b

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
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(Producer<T> producer) {
18-
this.producer = producer::create;
17+
public Pool(Supplier<T> producer) {
18+
this.producer = producer;
1919
}
2020

2121
public synchronized T get() {

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

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)