Skip to content

Commit cd2ddef

Browse files
committed
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 c497fe4 commit cd2ddef

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -957,8 +957,10 @@ public void dispatchCUISetup(Actor actor) {
957957
public void dispatchCUISelection(Actor actor) {
958958
checkNotNull(actor);
959959

960-
if (!hasCUISupport && useServerCUI) {
961-
updateServerCUI(actor);
960+
if (!hasCUISupport) {
961+
if (useServerCUI) {
962+
updateServerCUI(actor);
963+
}
962964
return;
963965
}
964966

0 commit comments

Comments
 (0)