summaryrefslogtreecommitdiff
path: root/client/src/logic/items.ts
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-06-29 20:29:54 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-06-29 20:29:54 -0400
commitc66865d431532330194f6b845160e01a7ba003ab (patch)
tree99e1e6384592371089fd1aefc388b96b22107b82 /client/src/logic/items.ts
parentupdate dockerfile (diff)
downloadtuxman-c66865d431532330194f6b845160e01a7ba003ab.tar.gz
tuxman-c66865d431532330194f6b845160e01a7ba003ab.tar.bz2
tuxman-c66865d431532330194f6b845160e01a7ba003ab.zip
when players die, they should acutally fucking die
Diffstat (limited to '')
-rw-r--r--client/src/logic/items.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/logic/items.ts b/client/src/logic/items.ts
index 79624d3..1803508 100644
--- a/client/src/logic/items.ts
+++ b/client/src/logic/items.ts
@@ -44,7 +44,7 @@ export const updateItems = (data: GameState) => {
const player = data.players[id]
- if(!player) {
+ if(!player || player.dead) {
continue;
}