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:
parent
cc9403ce58
commit
82d4881ca2
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue