Merge pull request #2344 from kacpherek/fix/creeper-fall-swell
🤖 Agent: Proven in union R1 (branch union/cg19-r1, main + 83 of kacpherek's PRs): the 98 harnesses it can affect, clippy -D warnings, tests, lan_e2e in-frame and on the server thread.
This commit is contained in:
@@ -814,6 +814,11 @@ impl Mob {
|
||||
let at = [self.position.x, self.position.y, self.position.z];
|
||||
events.push(MobEvent::Sound("entity.breeze.land", at, 1.0, 1.0));
|
||||
}
|
||||
// Creeper.causeFallDamage: the fall swells the fuse, up to five ticks
|
||||
// short of exploding.
|
||||
if self.species() == super::Species::Creeper {
|
||||
self.swell = (self.swell + (self.fall_distance * 1.5) as i32).min(30 - 5);
|
||||
}
|
||||
if self.kind.flags.fall_immune {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user