Skip to content

Commit

Permalink
Check for Sprint bind instead of Ctrl for ShiftScrollListener
Browse files Browse the repository at this point in the history
  • Loading branch information
vgskye committed Aug 24, 2024
1 parent 45d519d commit b9fc1e1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import at.petrak.hexcasting.common.msgs.MsgShiftScrollC2S;
import at.petrak.hexcasting.xplat.IClientXplatAbstractions;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.world.item.Item;

Expand Down Expand Up @@ -46,7 +45,7 @@ public static boolean onScroll(double delta, boolean needsSneaking) {
public static void clientTickEnd() {
if (mainHandDelta != 0 || offHandDelta != 0) {
IClientXplatAbstractions.INSTANCE.sendPacketToServer(
new MsgShiftScrollC2S(mainHandDelta, offHandDelta, Screen.hasControlDown(),
new MsgShiftScrollC2S(mainHandDelta, offHandDelta, Minecraft.getInstance().options.keySprint.isDown(),
HexConfig.client().invertSpellbookScrollDirection(),
HexConfig.client().invertAbacusScrollDirection()));
mainHandDelta = 0;
Expand Down

0 comments on commit b9fc1e1

Please sign in to comment.