Building Wands

Building Wands

6M Downloads

Off By One Wand Use

Imoriarty opened this issue ยท 5 comments

commented

There's been a consistent issue that I've encountered, where, after some use of the wand, (I think centered around the Destroy mode with a block in offhand) that causes the wand to reverse in placement vs display.

Essentially, after the bug is triggered, the preview shows when the wand will not trigger, and doesn't show preview when it will. Somehow the preview and the actual action get desynched/reversed.

I use the same wand for Destroy and Replace, and I find this issue shows up often when I forget to un-equip the replacement block from my off hand and switch to Destroy, and the wand errors, saying the action is "restricted to offhand block: [blockname]." After that, I remove the block from my hand, and the wand is now reversed compared to the preview.

If you then replace the "filter block" in your offhand, and trigger the error again, the situation resolves itself, but only if you trigger the error again.

commented

Oh, and this was 1.18.2 / Fabric / Modver c2.6.3_release.

commented

I'll investigate the issue, thanks

commented
  1. Begin with a Destroy Wand, and a block in the offhand. This block should not be of a type that is in the set of blocks you're going to destroy (Stone Bricks, usually in my case.)
  2. Attempt to Destroy a 2 by 2 range of blocks of Dirt.
  3. You'll get a "restricted to offhand block: Stone Bricks" error message.
  4. Remove the Stone Bricks from your offhand.
  5. Preview and Action are now reversed.

Video: https://youtu.be/dLEsaEpqxjs

commented

I wasn't able to reproduce the issue. can you provide a series of steps that reproduce the bug consistently? I'll keep investigating

commented

I think I know what's happening, for now just clear the wand after removing the offhand block, by right clicking on the air.