Skip to content

Commit

Permalink
remove mixin debug (Polyfrost#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
MicrocontrollersDev authored Jul 8, 2024
1 parent 6490b8f commit 9714248
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
import club.sk1er.patcher.config.PatcherConfig;
import club.sk1er.patcher.hooks.ZoomHook;
import net.minecraft.entity.player.InventoryPlayer;
import org.spongepowered.asm.mixin.Debug;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.*;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Debug(export = true)
@Mixin(InventoryPlayer.class)
public class InventoryPlayerTransformer_HotbarScrolling {
@Shadow
Expand All @@ -35,7 +33,7 @@ public class InventoryPlayerTransformer_HotbarScrolling {
}
}

@ModifyConstant(method = "changeCurrentItem", constant = {@Constant(intValue = 9, ordinal = 2), @Constant(intValue = 9, ordinal = 0)})
@ModifyConstant(method = "changeCurrentItem", constant = {@Constant(intValue = 9, ordinal = 0), @Constant(intValue = 9, ordinal = 2)})
private int patcher$preventOverflowScrolling(int constant) {
if (PatcherConfig.preventOverflowHotbarScrolling) {
return 1;
Expand Down

0 comments on commit 9714248

Please sign in to comment.