Skip to content

Commit

Permalink
Fixed: PacketEventsInjectorMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram1903 committed Jul 4, 2024
1 parent 48b789d commit f78ffc9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import io.netty.channel.Channel;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelPipeline;
import net.minecraft.network.BandwidthDebugMonitor;
import net.minecraft.network.protocol.PacketFlow;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand All @@ -24,9 +25,9 @@
@Mixin(net.minecraft.network.Connection.class)
public class PacketEventsInjectorMixin {
@Inject(method = "configureSerialization", at = @At("TAIL"))
private static void configureSerialization(ChannelPipeline cp, PacketFlow pf, CallbackInfo info) throws Exception {
private static void configureSerialization(ChannelPipeline pipeline, PacketFlow flow, BandwidthDebugMonitor bandwithMonitor, CallbackInfo ci) throws Exception {
PacketEventsMod.LOGGER.info("Connected!");
Channel channel = cp.channel();
Channel channel = pipeline.channel();
User user = new User(channel, ConnectionState.HANDSHAKING, ClientVersion.getLatest(),
new UserProfile(null, null));
ProtocolManager.USERS.put(channel, user);
Expand Down

0 comments on commit f78ffc9

Please sign in to comment.