Skip to content

Commit

Permalink
Fix containers not being notified when owner joins
Browse files Browse the repository at this point in the history
  • Loading branch information
Jikoo committed Sep 11, 2024
1 parent f121c11 commit 847f22f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ public void unload(@NotNull UUID uuid) {
@Keep
@EventHandler(priority = EventPriority.LOWEST)
private void onPlayerJoin(@NotNull PlayerJoinEvent event) {
consumeLoaded(event.getPlayer().getUniqueId(), inventory -> checkViewerAccess(inventory, true));
consumeLoaded(event.getPlayer().getUniqueId(), inventory -> {
inventory.setPlayerOnline(event.getPlayer());
checkViewerAccess(inventory, true);
});
}

@Keep
Expand Down

0 comments on commit 847f22f

Please sign in to comment.