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 MC-233478 Slow when rightclicking when drop item while eat MC-233936 slow movement speed with no spyglass MC-234969 Thrown out items are still slowing the user down MC-237222 You still have slowness when using then dropping shield MC-258528 Goat horn slows even when not in inventory MC-259405 Discarding the bow in your hand and keeping the right button while pulling the bow will cause walking to slow down MC-260448 Dropping a Brush while using it keeps the slow speed MC-260540 Throwing away an item you are using keeps the slowdown while you hold the use key MC-262301 When holding 2 shields, stopping holding the shield in your main hand causes inconsistent behaviours. MC-262819 If bow dropped while charging, you stil are slow MC-264862 spyglass slowness being kept MC-267446 Slowdown from pulling trident up still applies when trident leaves your hand as long as you hold use item/place block MC-268514 walk slowly after dropping the shield MC-274402 While eating food and you drop it, you are still slow MC-274805 When eating/drinking something and it doesnt stop slowing you down. MC-279111 Dropping certain items while right clicking causes the movement speed reduction to persist MC-280233 If you hold right click then drop a consumable you still get the slowdown effect

Attachments

Comments

migrated

Can confirm in 1.17.1 rc1

 

Avoma

Can confirm in 1.18.

Avoma

Can confirm in 1.18.1.

Avoma

Can confirm in 1.18.2.

MMK21

Relates to MC-165381

Avoma

Can confirm in 1.19.1.

KnightMiner

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.

JUE13

Affects 1.21-pre4

migrated

厉害👍

migrated

Can confirm in 1.21.3

migrated

(Unassigned)

Confirmed

Gameplay

Low

Player

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

Retrieved