Move effects out of cubi
This commit is contained in:
@@ -103,7 +103,9 @@ export function register_curios(ctx: ServerContext) {
|
||||
});
|
||||
|
||||
ctx.events.after.player_join.subscribe(({ player }) => last_hurt.set(player.id, ctx.system.current_tick));
|
||||
ctx.events.after.player_damage.subscribe(({ player }) => last_hurt.set(player.id, ctx.system.current_tick));
|
||||
ctx.events.after.entity_damage.subscribe(({ player }) => {
|
||||
if (player) last_hurt.set(player.id, ctx.system.current_tick);
|
||||
});
|
||||
ctx.events.after.tick.subscribe(() => {
|
||||
for (const [id, effects] of unhurt_effects) {
|
||||
const player = ctx.players.get(id);
|
||||
|
||||
Reference in New Issue
Block a user