fix: Fixes PotionKeg causing weight issues (#2330)

This commit is contained in:
Kamron Batman 2026-02-08 20:55:15 -08:00 • committed by GitHub
parent a9d2b0c01f
commit f7f1265216
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,7 +31,10 @@ public partial class PotionKeg : Item
{
if (_held != value)
{
var oldPileWeight = PileWeight;
_held = value;
var newPileWeight = PileWeight;
UpdateTotal(this, TotalType.Weight, newPileWeight - oldPileWeight);
InvalidateProperties();
this.MarkDirty();
}