You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second arg in net.minectaft.world.entity.LivingEntity::doHurtTarget is called source, but in reality, it is the entity being attacked rather than the source of the attack.
Just need to check net.minectaft.world.entity.Mob, it override doHurtTarget. The use of itemStack.HurtEnemy() proves that the second arg in doHurtTarget is the hurted entity.
In branch 1.20. x, it is correct and it is called target .
The text was updated successfully, but these errors were encountered:
uoay
added
bug
An error, misspell, incorrect information, or other issue
triage
Needs attention for triaging and proper assignment of labels
labels
Mar 23, 2025
Uh oh!
There was an error while loading. Please reload this page.
Minecraft version: [1.21.4]
Mappings version: [2025.03.16, 2025.03.23]
The second arg in
net.minectaft.world.entity.LivingEntity::doHurtTarget
is calledsource
, but in reality, it is the entity being attacked rather than the source of the attack.Just need to check
net.minectaft.world.entity.Mob
, it overridedoHurtTarget
. The use ofitemStack.HurtEnemy()
proves that the second arg indoHurtTarget
is the hurted entity.In branch 1.20. x, it is correct and it is called
target
.The text was updated successfully, but these errors were encountered: