Skip to content

Commit

Permalink
fix 1.20.2
Browse files Browse the repository at this point in the history
really mojang?
  • Loading branch information
aria1th committed Oct 19, 2023
1 parent 880e086 commit 95500c3
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
import net.minecraft.client.gui.screen.ingame.CreativeInventoryScreen;
import net.minecraft.client.network.ClientPlayNetworkHandler;
import net.minecraft.client.network.ClientPlayerEntity;
//#if MC>=12002
//$$ import net.minecraft.client.network.ClientCommonNetworkHandler;
//$$ import net.minecraft.client.network.ClientConnectionState;
//$$ import net.minecraft.network.ClientConnection;
//#endif
import net.minecraft.network.packet.s2c.play.DisconnectS2CPacket;
import net.minecraft.network.packet.s2c.play.ScreenHandlerSlotUpdateS2CPacket;
import net.minecraft.network.packet.s2c.play.UpdateSelectedSlotS2CPacket;
Expand All @@ -20,12 +25,20 @@
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

//#if MC<=12001
@Mixin(ClientPlayNetworkHandler.class)
public class ClientPlayNetworkHandlerMixin {

@Shadow
@Final
private MinecraftClient client;
//#else
//$$@Mixin(value = ClientPlayNetworkHandler.class, remap = false)
//$$public abstract class ClientPlayNetworkHandlerMixin extends ClientCommonNetworkHandler{
//$$protected ClientPlayNetworkHandlerMixin(MinecraftClient client, ClientConnection connection, ClientConnectionState connectionState) {
//$$ super(client, connection, connectionState);
//$$ }
//#endif
private static boolean isSynced = false;

/*
Expand Down

0 comments on commit 95500c3

Please sign in to comment.