Gun cleanup (#18682)

This commit is contained in:
metalgearsloth
2023-08-05 12:49:27 +10:00
committed by GitHub
parent 7b71933165
commit a5ed3af5b1
7 changed files with 16 additions and 20 deletions

View File

@@ -127,7 +127,7 @@ public partial class SharedGunSystem
if (ent == null)
{
Sawmill.Error($"Tried to load hitscan into a revolver which is unsupported");
Log.Error($"Tried to load hitscan into a revolver which is unsupported");
continue;
}
@@ -141,7 +141,7 @@ public partial class SharedGunSystem
DebugTools.Assert(ammo.Count == 0);
UpdateRevolverAppearance(revolverUid, component);
UpdateAmmoCount(uid);
Dirty(component);
Dirty(uid, component);
Audio.PlayPredicted(component.SoundInsert, revolverUid, user);
Popup(Loc.GetString("gun-revolver-insert"), revolverUid, user);