Skip to content

Commit 51c4bb5

Browse files
wizjanydordsor21
authored andcommitted
Fix sending CUI packets to unwilling clients.
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).
1 parent e9e072c commit 51c4bb5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

worldedit-core/src/main/java/com/sk89q/worldedit/LocalSession.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,8 +1573,10 @@ public void dispatchCUISetup(Actor actor) {
15731573
public void dispatchCUISelection(Actor actor) {
15741574
checkNotNull(actor);
15751575

1576-
if (!hasCUISupport && useServerCUI) {
1577-
updateServerCUI(actor);
1576+
if (!hasCUISupport) {
1577+
if (useServerCUI) {
1578+
updateServerCUI(actor);
1579+
}
15781580
return;
15791581
}
15801582

0 commit comments

Comments
 (0)