Updated README

This commit is contained in:
RaphiMC 2023-11-12 18:00:30 +01:00
parent 0e09507ede
commit e0dfc6556e
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94

View File

@ -99,7 +99,7 @@ After you have initialized the Via* platforms you can start implementing ViaLoad
The most important part is the modification of your netty pipeline. This is needed for ViaVersion to translate the packets in both ways.
Here is an example implementation:
```java
final UserConnection user = new UserConnectionImpl(channel, true);
final UserConnection user = new UserConnectionImpl(channel, true/*clientside or serverside*/);
new ProtocolPipelineImpl(user);
channel.pipeline().addBefore("packet_codec", VLPipeline.VIA_CODEC_NAME, new ViaCodec(user));