Skip to content

Commit

Permalink
Fix click detection
Browse files Browse the repository at this point in the history
  • Loading branch information
d0by1 committed Dec 7, 2021
1 parent 5936018 commit 351bfea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,10 @@ public boolean show(Player player, int pageIndex) {
hide(player);
}
page.getLines().forEach(line -> line.show(player));
showClickableEntities(player);
// Add player to viewers
viewerPages.put(player.getUniqueId(), pageIndex);
viewers.add(player.getUniqueId());
showClickableEntities(player);
return true;
}
return false;
Expand Down

0 comments on commit 351bfea

Please sign in to comment.