Fix taser visuals not updating after charging. (#6065)

This commit is contained in:
Leon Friedrich
2022-01-10 01:48:58 +13:00
committed by GitHub
parent 259914b919
commit 5a64936ade
4 changed files with 21 additions and 6 deletions

View File

@@ -163,8 +163,8 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
throw new InvalidOperationException("Ammo doesn't have hitscan or projectile?");
}
Dirty();
UpdateAppearance();
// capacitor.UseCharge() triggers a PowerCellChangedEvent which will cause appearance to be updated.
// So let's not double-call UpdateAppearance() here.
return entity.Value;
}
}