mojira.dev
MC-231097

Holding the "Use" button continues to slow down the player even after the used item has been dropped

When holding a item that slows you down when holding right click, when the item is dropped whilst holding right click (Spyglasses, Shield, and more) you still maintain the slowness of that item as if it was used, but no effect is occurring, you don't see the overlay of the spyglass, nor you get protected by the shield, although once you remove right click the effect goes away.

How to reproduce:

  1. Get any item that slows you down when using it.

  2.  Press the "Drop" button on your keyboard to remove the item   
    ❌ The item previously held stills slow you down when holding the right click button or the use button and doesn't revert to walking speed unless stopped right clicking or using.

Linked issues

MC-231369 Slowdown remains after droping interactive item Resolved MC-233478 Slow when rightclicking when drop item while eat Resolved MC-233936 slow movement speed with no spyglass Resolved MC-234969 Thrown out items are still slowing the user down Resolved MC-237222 You still have slowness when using then dropping shield Resolved

Attachments

Comments 10

Can confirm in 1.17.1 rc1

 

Can confirm in 1.18.

Can confirm in 1.18.1.

Can confirm in 1.18.2.

Can confirm in 1.19.1.

While this bug does not impact vanilla much, it does make usable items difficult in mods in a few ways. Fix seems to be pretty simple, just a patch in both LocalPlayer#drop(boolean) and ServerPlayer#drop(boolean) as those are the last place with access to the use item before it shrinks. See https://github.com/MinecraftForge/MinecraftForge/pull/9344 for a Forge PR implementing the fix.

Did some testing, and the one vanilla gameplay impact I found with the fix is if both the main hand and offhand are usable items, then dropping the main hand item lets you immediately start using the offhand item. I doubt that is ever beneficial in vanilla as you can get the same effect using the scroll wheel, but it is more desirable behavior.

Affects 1.21-pre4

厉害👍

Can confirm in 1.21.3

Aiden Shea Sinlao

(Unassigned)

Confirmed

Gameplay

Low

Player

1.17, 1.17.1 Release Candidate 1, 1.17.1, 1.18, 1.18.1, ..., 1.21 Pre-Release 4, 1.21, 1.21.3, 1.21.4, 1.21.8

Retrieved