Hitting a TNT Minecart does not trigger EntityKnockbackByEntityEvent #5886
Labels
good first issue
Simple bug fix or feature which would be a good first PR for someone new to the project
needs testing
Issue needs verification.
type: bug
Something doesn't work as it was intended to.
version: 1.17
Game version 1.17
Projects


Expected behavior
I melee a TNT Minecart with a knockback 2 sword and expect my message listening on EntityKnockbackByEntityEvent to print out the EntityTypes of both #.getEntityType() and #.getHitBy().getEntityType(). (The event should trigger properly.)
Observed/Actual behavior
No message is printed out because hitting a TNT Minecart (or regular minecart) does not trigger EntityKnockbackByEntityEvent. Also tested with a punch bow on mobs (does trigger) but does not trigger on the Minecart.
Steps/models to reproduce
Listen on EntityKnockbackByEntityEvent and print a message any time event is fired with the entitytype of the hit entity. Hit a TNT Minecart or regular minecart.
Plugin list
ApolloUHC (my custom plugin)
Paper version
git-Paper-"3d43c5e"
Agreements
Other
Using a knockback sword better shows the minecart getting knocked back. Spam click the minecart so that it does not break immediately.
The text was updated successfully, but these errors were encountered: