The bug
If you throw a trident through lava, the trident projectile will be set on fire, but mobs it hits won't be set on fire.
Code analysis
Code analysis by @unknown can be found in this comment.
Linked issues
is duplicated by 1
Attachments
Comments 14
Code analysis (Mojang mappings, 23w45a): This is because ThrownTrident#onHitEntity
does not check if it is on fire and set the hit entity on fire like in AbstractArrow#onHitEntity
. This could be a potential fix:
...
if ($$1.hurt($$5, $$2)) {
if ($$1.getType() == EntityType.ENDERMAN) {
return;
}
// Added
if (this.isOnFire()) {
$$1.setSecondsOnFire(5);
}
...
} else if ($$1.getType().is(EntityTypeTags.DEFLECTS_TRIDENTS)) {
this.deflect();
return;
}
...
Just so that you know, You're supposed to put your description of the bug under "Description", not Environment".