Undergarden mod !

This commit is contained in:
2026-09-30 17:30:14 -03:00
parent cbc9edfd60
commit 0052faa24d
21 changed files with 545 additions and 46 deletions
+2 -2
View File
@@ -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;
}