Skip to content

Commit

Permalink
also quits
Browse files Browse the repository at this point in the history
Boy, and I thought having to make the first commit was embarrassing, wait till people see that I realized that was missing and didn't think about the counterpart. At least I did think about it though, I wasn't even testing on 1.20 where it would break things.
  • Loading branch information
Jikoo committed Sep 11, 2024
1 parent 847f22f commit 54f0787
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ private void onPlayerJoin(@NotNull PlayerJoinEvent event) {
@Keep
@EventHandler(priority = EventPriority.MONITOR)
private void onPlayerQuit(@NotNull PlayerQuitEvent event) {
consumeLoaded(event.getPlayer().getUniqueId(), inventory -> checkViewerAccess(inventory, false));
consumeLoaded(event.getPlayer().getUniqueId(), inventory -> {
inventory.setPlayerOffline();
checkViewerAccess(inventory, false);
});
}

@Keep
Expand Down

0 comments on commit 54f0787

Please sign in to comment.