Death
This commit is contained in:
@@ -313,6 +313,11 @@ export abstract class LivingEntity extends Entity {
|
||||
return true;
|
||||
}
|
||||
|
||||
// mods can still cancel it, like any damage
|
||||
override kill(cause: string) {
|
||||
this.hurt(Number.MAX_VALUE, { cause, type: "absolute", bypasses_invulnerability: true });
|
||||
}
|
||||
|
||||
// after mods and the hurt cooldown
|
||||
actually_hurt(amount: number, source: DamageSource) {
|
||||
// absolute damage, take it and theres no counterplay
|
||||
|
||||
Reference in New Issue
Block a user