whenMoreResolved should return null when resolved

This commit is contained in:
Vaci Koblizek 2020-12-07 18:55:54 +00:00
parent 21d3eba0e5
commit c7621d1de3

View file

@ -265,7 +265,7 @@ public final class Capability {
@Override
public CompletableFuture<ClientHook> whenMoreResolved() {
if (this.resolved != null) {
return CompletableFuture.completedFuture(this.resolved);
return null;
}
else if (this.resolveTask != null) {
return this.resolveTask.thenApply(void_ -> this.resolved);