Skip to content

Commit

Permalink
fixed UpdateSelectedSlotC2SPacketAccessor to be c2s instead of s2c
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsterner committed Jun 15, 2024
1 parent ac032f4 commit 548429c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 548429c

Please sign in to comment.