Skip to content

Commit

Permalink
fix: mercurial wand mode change ignores scroll direction
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Aug 19, 2024
1 parent d8be75d commit 87a65f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public MercurialWandItem(Properties pProperties) {

@Override
public void changeMode(Player player, ItemStack stack, int shift) {
var nextMode = stack.get(DataComponentRegistry.MERCURIAL_WAND_ITEM_MODE.get()).type().next().mode();
var nextMode = stack.get(DataComponentRegistry.MERCURIAL_WAND_ITEM_MODE.get()).type().shift(shift).mode();
stack.set(DataComponentRegistry.MERCURIAL_WAND_ITEM_MODE.get(), nextMode);

player.displayClientMessage(nextMode.description(stack, player.level()), true);
Expand Down

0 comments on commit 87a65f0

Please sign in to comment.