diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index db9a6b8..17655d0 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/src/main/java/org/ladysnake/locki/impl/mixin/UpdateSelectedSlotC2SPacketAccessor.java b/src/main/java/org/ladysnake/locki/impl/mixin/UpdateSelectedSlotC2SPacketAccessor.java index bec03c8..6baf2fe 100644 --- a/src/main/java/org/ladysnake/locki/impl/mixin/UpdateSelectedSlotC2SPacketAccessor.java +++ b/src/main/java/org/ladysnake/locki/impl/mixin/UpdateSelectedSlotC2SPacketAccessor.java @@ -17,11 +17,11 @@ */ package org.ladysnake.locki.impl.mixin; -import net.minecraft.network.packet.s2c.play.SelectedSlotUpdateS2CPacket; +import net.minecraft.network.packet.c2s.play.SelectedSlotUpdateC2SPacket; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.gen.Accessor; -@Mixin(SelectedSlotUpdateS2CPacket.class) +@Mixin(SelectedSlotUpdateC2SPacket.class) public interface UpdateSelectedSlotC2SPacketAccessor { @Accessor("selectedSlot") void locki$setSelectedSlot(int selectedSlot); diff --git a/src/main/java/org/ladysnake/locki/impl/mixin/UpdateSelectedSlotC2SPacketMixin.java b/src/main/java/org/ladysnake/locki/impl/mixin/UpdateSelectedSlotC2SPacketMixin.java index 6dc262c..14042e7 100644 --- a/src/main/java/org/ladysnake/locki/impl/mixin/UpdateSelectedSlotC2SPacketMixin.java +++ b/src/main/java/org/ladysnake/locki/impl/mixin/UpdateSelectedSlotC2SPacketMixin.java @@ -17,13 +17,13 @@ */ package org.ladysnake.locki.impl.mixin; -import net.minecraft.network.packet.s2c.play.SelectedSlotUpdateS2CPacket; +import net.minecraft.network.packet.c2s.play.SelectedSlotUpdateC2SPacket; import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Mutable; import org.spongepowered.asm.mixin.Shadow; -@Mixin(SelectedSlotUpdateS2CPacket.class) +@Mixin(SelectedSlotUpdateC2SPacket.class) public class UpdateSelectedSlotC2SPacketMixin { @SuppressWarnings("unused") // only there to make selectedSlot mutable - for use by the accessor @Shadow @Mutable @Final private int selectedSlot;