diff --git a/src/main/java/carpet/mixins/ClientCommonPacketListenerImpl_customPacketMixin.java b/src/main/java/carpet/mixins/ClientCommonPacketListenerImpl_customPacketMixin.java deleted file mode 100644 index dd622bb14..000000000 --- a/src/main/java/carpet/mixins/ClientCommonPacketListenerImpl_customPacketMixin.java +++ /dev/null @@ -1,29 +0,0 @@ -package carpet.mixins; - -import carpet.network.CarpetClient; -import net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl; -import net.minecraft.network.chat.Component; -import net.minecraft.network.protocol.common.ClientboundCustomPayloadPacket; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; - -@Mixin(ClientCommonPacketListenerImpl.class) -public class ClientCommonPacketListenerImpl_customPacketMixin -{ - // this doesn't seem to ever be called anymore, the MinecraftClient mixin seems enough - @Inject(method = "onDisconnect", at = @At("HEAD")) - private void onCMDisconnected(Component reason, CallbackInfo ci) - { - CarpetClient.disconnect(); - } - - @Inject(method = "handleCustomPayload(Lnet/minecraft/network/protocol/common/ClientboundCustomPayloadPacket;)V", - at = @At("HEAD")) - private void onOnCustomPayload(ClientboundCustomPayloadPacket packet, CallbackInfo ci) - { - //System.out.println("CustomPayload of : " + packet.payload()); - } - -} diff --git a/src/main/resources/carpet.mixins.json b/src/main/resources/carpet.mixins.json index 768da6027..8299cd18d 100644 --- a/src/main/resources/carpet.mixins.json +++ b/src/main/resources/carpet.mixins.json @@ -196,10 +196,7 @@ "LevelRenderer_creativeNoClipMixin", "ClientPacketListener_customPacketsMixin", "DebugRenderer_scarpetRenderMixin", - "LevelRenderer_scarpetRenderMixin", - - - "ClientCommonPacketListenerImpl_customPacketMixin" + "LevelRenderer_scarpetRenderMixin" ], "injectors": { "defaultRequire": 1