Skip to content

Commit

Permalink
fix tab group not working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei1058 committed Dec 18, 2022
1 parent 4ad49e1 commit 2960fc0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,10 @@ public PlayerTab playerTabCreate(String identifier, @Nullable Player player, Sid
VersionedTabGroup tab = SidebarManager.getInstance().getSidebarProvider().createPlayerTab(
this, identifier, prefix, suffix, pushingRule, PlayerTab.NameTagVisibility.ALWAYS
);
// send tab create to sidebar receivers
getReceivers().forEach(tab::sendCreateToPlayer);
if (null != player){
tab.sendCreateToPlayer(player);
// add entity to tab team
tab.sendUserCreateToReceivers(player);
}
tabView.add(tab);
Expand Down

0 comments on commit 2960fc0

Please sign in to comment.