Skip to content

Commit

Permalink
fix networking properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ferriarnus committed May 20, 2024
1 parent 98e5b07 commit d2d6838
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 54 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/replaymod/replay/ReplayHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@

//#if MC>=11700
import net.minecraft.client.render.DiffuseLighting;
import net.minecraftforge.network.NetworkHooks;
import org.joml.Matrix4f;
//#endif

Expand Down Expand Up @@ -334,6 +335,8 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable t) {
channel.pipeline().addLast("packet_handler", networkManager);
channel.pipeline().fireChannelActive();

NetworkHooks.registerClientLoginChannel(networkManager);

// MC usually transitions from handshake to login via the packets it sends.
// We don't send any packets (there is no server to receive them), so we need to switch manually.
//#if MC>=12002
Expand Down
18 changes: 0 additions & 18 deletions src/main/java/com/replaymod/replay/mixin/Mixin_ConnectionType.java

This file was deleted.

This file was deleted.

4 changes: 1 addition & 3 deletions src/main/resources/mixins.replay.replaymod.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@
"MixinRenderLivingBase",
"MixinTileEntityEndPortalRenderer",
"MixinWorldClient",
"Mixin_ScreenButton",
"Mixin_HandshakeHandler",
"Mixin_ConnectionType"
"Mixin_ScreenButton"
],
"compatibilityLevel": "JAVA_8",
"minVersion": "0.6.11"
Expand Down

0 comments on commit d2d6838

Please sign in to comment.