Move effects out of cubi
This commit is contained in:
@@ -178,16 +178,6 @@ export class ServerPlayer extends LivingEntity {
|
||||
this.vx = this.vy = this.vz = 0;
|
||||
}
|
||||
|
||||
// everything that hurts a player goes through the game server first, which lets mods change or cancel it
|
||||
override hurt(amount: number, source: DamageSource): boolean {
|
||||
return this.level.hurt_player(this, amount, source);
|
||||
}
|
||||
|
||||
// hurts them for real, once mods have had their say
|
||||
apply_hurt(amount: number, source: DamageSource): boolean {
|
||||
return super.hurt(amount, source);
|
||||
}
|
||||
|
||||
override on_hurt(_source: DamageSource) {
|
||||
this.vitals.add_exhaustion(EXHAUSTION.damage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user