fix: Spawned items should only decay after unlinked from spawner (#2109)

This commit is contained in:
uogem 2025-02-04 19:14:56 -05:00 committed by GitHub
parent 1c5fa824d6
commit b83c52a7b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -328,7 +328,7 @@ public class Item : IHued, IComparable<Item>, ISpawnable, IObjectPropertyListEnt
public virtual TimeSpan DecayTime => DefaultDecayTime;
[CommandProperty(AccessLevel.GameMaster)]
public virtual bool Decays => Movable && Visible;
public virtual bool Decays => Movable && Visible && Spawner == null;
public DateTime LastMoved { get; set; }