mojira.dev
MC-313777

Endermen not riding entities can be set on fire by flaming arrows

Summary

An enderman that is not riding any entity can be set on fire by a flaming arrow, even though it rejects the direct projectile damage and attempts to teleport
away.

This appears to be a regression involving the fixes for MC-311153 and MC-311400.

Environment

Observed in Minecraft Java Edition 26.3 using Fabric.

Steps to reproduce

  1. In a non-Peaceful world, find or spawn an enderman that is not riding any entity.

  2. Make sure it is not already burning and has no Fire Resistance effect.

  3. Test at night in clear weather, away from water, lava, fire, campfires, and other possible sources of burning.

  4. Shoot the enderman with an ordinary arrow from a bow enchanted with Flame.

  5. Observe the enderman after the arrow interaction and teleport attempt.

Expected result

The enderman should avoid/reject the arrow hit without being left on fire by that rejected hit.

The arrow should also retain the non-deflection behavior introduced by the fix for MC-311400.

Actual result

The enderman is left on fire after the arrow interaction, despite rejecting the direct projectile damage.

Technical analysis

In AbstractArrow.onHitEntity, the target is ignited before hurtOrSimulate is called:

int remainingFireTicks = entity.getRemainingFireTicks();
if (this.isOnFire()) {
entity.igniteForSeconds(5.0F);
}

if (entity.hurtOrSimulate(damageSource, damage)) {
// Successful-hit processing
} else if (entity.projectileReceivesSideEffectsOnHit(false)) {
entity.setRemainingFireTicks(remainingFireTicks);
// Deflection processing
}

For projectile damage against an enderman that is not a passenger, Enderman.hurtServer attempts to teleport and returns false.

Enderman.projectileReceivesSideEffectsOnHit returns its wasHurt argument. Therefore, the call with false skips the entire failure branch, including
restoration of the target's previous fire ticks.

The fire applied before the damage attempt is consequently retained. Subsequent on-fire damage is not projectile damage.

Version comparison

Inspection of official client JARs shows:

  • 26.3 Snapshot 9: Arrow ignition explicitly excludes endermen.

  • 26.3 Snapshot 10: That exclusion is removed, but failed damage attempts still unconditionally restore the saved fire ticks.

  • 26.3 Pre-Release 1: The failure branch becomes conditional on projectileReceivesSideEffectsOnHit(false), causing the fire restoration to be skipped for
    endermen.

  • 26.3: The same problematic logic is still present.

The code-level regression first appears between Snapshot 10 and Pre-Release 1. This version comparison is based on code inspection, not full in-game testing of
every listed version.

Suggested fix

Restore the saved fire ticks whenever the damage attempt fails, independently of whether projectile deflection should be processed.

This should preserve both:

  • Flaming arrows setting riding endermen on fire when damage succeeds.

  • Arrows not bouncing off endermen that reject the hit.

Related issues

  • MC-311153 — Endermen riding boats/minecarts aren't set on fire by flaming arrows

  • MC-311400 — Arrows now bounce off endermen even when they teleport

Comments 0

No comments.

DavidX

(Unassigned)

Unconfirmed

26.3

Retrieved