Zone: the death watch is added, not overwritten, so a second one for a member cannot exist

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-12 20:53:15 +02:00
commit 82d4881ca2

View file

@ -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)