Apply suggestion from @kamronbatman

This commit is contained in:
Kamron Batman 2026-08-13 19:17:43 -07:00 committed by GitHub
parent b1fc7cd460
commit 3e44020b72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2344,9 +2344,6 @@ public partial class Item : IHued, IComparable<Item>, ISpawnable, IObjectPropert
UpdateDecayRegistration();
}
// PlayerConstructed is part of stack identity. A merge keeps the receiving stack's value, so
// without this term the outcome depends on which side was dropped onto which: one order
// launders the flag onto items that never earned it, the other erases it from items that did.
public virtual bool CanStackWith(Item dropped) =>
dropped.Stackable && Stackable &&
dropped.GetType() == GetType() &&