Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlayerInteractEvent RIGHT_CLICK_BLOCK fired when interacting with entities #12009

Open
spring-dependency-management opened this issue Jan 25, 2025 · 3 comments
Labels
status: accepted Disputed bug is accepted as valid or Feature accepted as desired to be added. version: 1.21.4 Game version 1.21.4

Comments

@spring-dependency-management
Copy link
Contributor

Expected behavior

right clicking an entity with blocks behind them shouldn't fire playerinteractevent for the block

Observed/Actual behavior

It fires playerinteractevent for the block behind the entity

Steps/models to reproduce

right click a mob with blocks behind them

Plugin and Datapack List

N/A

Paper version

This server is running Paper version 1.21.4-DEV-main@88bbead (1970-01-01T00:00:00Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are 1 version(s) behind
Download the new version at: https://papermc.io/downloads/paper
Previous version: 1.21.4-121-88bbead (MC: 1.21.4)

Other

No response

@Machine-Maker
Copy link
Member

You are gonna have to be more specific about your replication steps. This for example, doesn't fire the PlayerInteractEvent at all. What mob, what blocks, how far, etc?

Image

@Machine-Maker Machine-Maker added the resolution: awaiting response Additional information is required from the issue reporter label Jan 25, 2025
@spring-dependency-management
Copy link
Contributor Author

You are gonna have to be more specific about your replication steps. This for example, doesn't fire the PlayerInteractEvent at all. What mob, what blocks, how far, etc?

Image

hold a bone in your hand and right click a cow

@Machine-Maker Machine-Maker added status: accepted Disputed bug is accepted as valid or Feature accepted as desired to be added. and removed resolution: awaiting response Additional information is required from the issue reporter labels Jan 26, 2025
@Machine-Maker
Copy link
Member

Ok, I can replicate that. It's fired by the call in ServerGamePacketListener#handleUseItem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepted Disputed bug is accepted as valid or Feature accepted as desired to be added. version: 1.21.4 Game version 1.21.4
Projects
None yet
Development

No branches or pull requests

3 participants