Skip to content

Commit

Permalink
Fix empty guis not opening
Browse files Browse the repository at this point in the history
  • Loading branch information
virustotalop committed Aug 25, 2024
1 parent 1c8d236 commit be8cfb3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ public CompletableFuture<Boolean> openGui(PlayerWrapper<?> playerWrapper,
}
});
}
if (slots.isEmpty()) {
slotFuture.complete(true);
}
slotFuture.whenComplete((completed, ex) -> {
if (ex != null) {
ex.printStackTrace();
Expand Down

0 comments on commit be8cfb3

Please sign in to comment.