Skip to content

Commit

Permalink
Fix sending CUI packets to unwilling clients.
Browse files Browse the repository at this point in the history
Some servers track channel registration: NF throws an error every time this happens; Bukkit silently drops it; Fabric silently sends it (presumably the client ignores it).
  • Loading branch information
wizjany committed Mar 3, 2025
1 parent c497fe4 commit cd2ddef
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -957,8 +957,10 @@ public void dispatchCUISetup(Actor actor) {
public void dispatchCUISelection(Actor actor) {
checkNotNull(actor);

if (!hasCUISupport && useServerCUI) {
updateServerCUI(actor);
if (!hasCUISupport) {
if (useServerCUI) {
updateServerCUI(actor);
}
return;
}

Expand Down

0 comments on commit cd2ddef

Please sign in to comment.