Skip to content

Commit

Permalink
Fix more invalid ClientPacketListener mixin
Browse files Browse the repository at this point in the history
client is crashing again because of another invalid mixin reference
  • Loading branch information
ImMorpheus committed Nov 18, 2023
1 parent 352144a commit 6455a0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@

import net.minecraft.client.Minecraft;
import net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl;
import net.minecraft.network.Connection;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;

@Mixin(ClientCommonPacketListenerImpl.class)
public abstract class ClientCommonPacketListenerImpl_API {
@Shadow @Final protected Connection connection;
@Shadow @Final protected Minecraft minecraft;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,10 @@
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.common.bridge.network.ConnectionHolderBridge;
import org.spongepowered.common.mixin.api.minecraft.client.multiplayer.ClientCommonPacketListenerImpl_API;

@Mixin(ClientPacketListener.class)
public abstract class ClientPacketListenerMixin implements ConnectionHolderBridge {

// @formatter:off
@Shadow @Final private Connection connection;
// @formatter:on
public abstract class ClientPacketListenerMixin extends ClientCommonPacketListenerImpl_API implements ConnectionHolderBridge {

@Override
public Connection bridge$getConnection() {
Expand Down

0 comments on commit 6455a0b

Please sign in to comment.