Undergarden mod !
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { PlayerInfo } from "$/common/protocol.ts";
|
||||
import type { EntityEvent, PlayerInfo } from "$/common/protocol.ts";
|
||||
import { TICK_DELTA } from "$/common/constants.ts";
|
||||
import type { ClientLevel } from "../level/client_level.ts";
|
||||
import { Player } from "./player.ts";
|
||||
@@ -38,7 +38,7 @@ export class RemotePlayer extends Player {
|
||||
}
|
||||
|
||||
// players respawn straight away, so dying doesn't show
|
||||
on_event(event: "hurt" | "death") {
|
||||
on_event(event: EntityEvent) {
|
||||
if (event === "hurt") {
|
||||
this.hurt_time = HURT_TICKS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user