The bug
When you yank someone into the lava or yank them from a high place to make them fall, it doesn't count as a kill. It just says the message as if the player killed him or her self rather then the fishing rod user killing the player. And it doesn't increment the player's stat.playerkills
and the totalKillCount
score.
Code analysis
Code analysis by @unknown can be found in this comment.
Linked issues
is duplicated by 1
relates to 2
Attachments
Comments 6
I'm quite surprised that barely anyone has noticed that this is a bug; but it might be because not a lot of people have realized that the fishing rod got updated to yank people properly. It's super ironic to me that my ticket isn't marked as a duplicate, because I really did expected for there to be a already reported ticket that I probably couldn't find in the search engine, and I think I've might of found another bug with the fishing rod, which I'll need to do further testing before I can report it.
I did not notice it myself, I just saw the report and got interested 🙂
Is the other bug maybe MC-87988?
No, it's this one:MC-101033
Occurs with mobs as well per MC-225794.
The reason why this is happening is because the class
net.minecraft.entity.projectile.EntityFishHook
is not dealing damage to the player. This way theCombatTracker
does not track this. The methodnet.minecraft.entity.projectile.EntityFishHook.func_184527_k()
(pulling an entity) could for example get theCombatTracker
of the caught entity and make it track this event.The following only shows an example, however the damage type is not completely correct.
There is however a problem that the
CombatTracker
resets pretty fast.