mojira.dev
MC-272517

Switching tools keeps enchantment effects for a brief second

Description:
Switching tools keeps =enchantment effects for a few moments.

Steps to reproduce:

  1. Enchant a Diamond Pickaxe with Efficiency V and put it in hotbar position 1 

  2. Grab an *unenchanted* Diamond Shovel and put it in hotbar position 2 

  3. Place or Find a patch of Gravel/Dirt

  4. In Survival Mode, begin mining the Gravel/Dirt with the Diamond Pickaxe and quickly switch to the Diamond Shovel

Note: The effect works for longer when using the mouse wheel but it also works by using the hotkeys

Expected Result:
The Gravel/Dirt is mined normally with the Diamond Shovel

Observed Result:
The Gravel/Dirt is mined instantly as if the Shovel was enchanted with Efficiency V. Sometimes 2-3 blocks of Gravel/Dirt are insta-mined

Linked issues

Attachments

Comments 4

Can confirm

[media]

Affects 1.21 and is made worse with high client to server ping

Also affects soul speed, see uploaded video or https://streamable.com/ww0e4o

Due to the server first having to recalculate the enchantment attribute effect when ticking, there can be a considerable delay before/after effect start and end when going on and off soul sand while boots are equipped

I've also noticed this issue, which I discovered by chance in my survival world. I confirm this issue in version 1.21.5

ExtremeStav

(Unassigned)

Confirmed

Platform

Normal

Enchantments, Items

24w21b, 1.21, 1.21.1, 24w44a

Retrieved