From 82d4881ca251f2f1a7c9885aad01e4050692a1f3 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 12 Oct 2026 20:53:15 +0200 Subject: [PATCH] Zone: the death watch is added, not overwritten, so a second one for a member cannot exist Co-Authored-By: Claude Opus 5.5 --- Assets/Scripts/ServerShared/Zone.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Assets/Scripts/ServerShared/Zone.cs b/Assets/Scripts/ServerShared/Zone.cs index c6956e7b3..3930977dc 100644 --- a/Assets/Scripts/ServerShared/Zone.cs +++ b/Assets/Scripts/ServerShared/Zone.cs @@ -111,8 +111,7 @@ public class Zone private void WatchDeath(Entity entity) { - UnwatchDeath(entity); - _deathWatches[entity] = entity.Death.Subscribe(_ => { DropLoot(entity); Entities.Remove(entity); entity.Deactivate(); }); + _deathWatches.Add(entity, entity.Death.Subscribe(_ => { DropLoot(entity); Entities.Remove(entity); entity.Deactivate(); })); } private void UnwatchDeath(Entity entity)