Skip to content

Commit

Permalink
Fix regression leading to SSP disconnecting
Browse files Browse the repository at this point in the history
Fixes #166
  • Loading branch information
Su5eD committed Nov 6, 2024
1 parent e02edae commit 673c12a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private static Map<ConnectionProtocol, NegotiationResult> preserveSendableChanne
NegotiationResult negotiation = results.get(ConnectionProtocol.PLAY);
List<NegotiatedNetworkComponent> components = new ArrayList<>(negotiation.components());
channels.stream()
.filter(c -> PayloadTypeRegistryImpl.PLAY_S2C.get(c.id()) != null)
.filter(c -> components.stream().noneMatch(d -> c.id().equals(d.id())) && PayloadTypeRegistryImpl.PLAY_S2C.get(c.id()) != null)
.forEach(c -> components.add(new NegotiatedNetworkComponent(c.id(), c.version())));
results.put(ConnectionProtocol.PLAY, new NegotiationResult(components, negotiation.success(), negotiation.failureReasons()));
}
Expand Down
2 changes: 1 addition & 1 deletion ffapi.gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
loom.platform=neoforge
fabric.loom.dontRemap=true

implementationVersion=2.0.17
implementationVersion=2.0.18

versionMc=1.21.1
versionForge=21.1.57
Expand Down

0 comments on commit 673c12a

Please sign in to comment.