neoforged / NeoForge

Neo Modding API for Minecraft, based on Forge
https://projects.neoforged.net/neoforged/neoforge
Other
1.17k stars 172 forks source link

[MC-1.20.4/NF-20.4.234] LeftClickBlock does not fire correctly #1109

Open MalkContent opened 3 months ago

MalkContent commented 3 months ago

Minecraft Version: 1.20.4

NeoForge Version: 20.4.234

Logs: N/A

Steps to Reproduce:

  1. Start digging a block
  2. abort digging the block
  3. Start digging the air (aka, punch), do not let go of the left mouse button
  4. Retarget the previous block
  5. Let go of the left mouse button

Description of issue: In step 4 the LeftClickBlock event does not fire with the START action (both Client and Server side). In step 5 the LeftClickBlock event does not fire with the ABORT action (Server side only anyways). This only happens when the same block is targeted in the described way. If the target block changes for step 4, the events fire correctly.

TelepathicGrunt commented 2 months ago

This sounds suspiciously familiar. I think this might be a vanilla bug

TelepathicGrunt commented 2 months ago

I think this is the bug that is related to here: https://bugs.mojang.com/browse/MC-69865