From 548429cae69a171dfc9421e47569de42dd1863e5 Mon Sep 17 00:00:00 2001 From: mrsterner Date: Sat, 15 Jun 2024 19:12:02 +0200 Subject: [PATCH] fixed UpdateSelectedSlotC2SPacketAccessor to be c2s instead of s2c --- gradle/wrapper/gradle-wrapper.properties | 2 +- .../locki/impl/mixin/UpdateSelectedSlotC2SPacketAccessor.java | 4 ++-- .../locki/impl/mixin/UpdateSelectedSlotC2SPacketMixin.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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;