Gun cleanup (#18682)
This commit is contained in:
@@ -18,7 +18,7 @@ public abstract partial class SharedGunSystem
|
||||
if (component.Count is null)
|
||||
{
|
||||
component.Count = component.Capacity;
|
||||
Dirty(component);
|
||||
Dirty(uid, component);
|
||||
}
|
||||
|
||||
UpdateBasicEntityAppearance(uid, component);
|
||||
@@ -42,7 +42,7 @@ public abstract partial class SharedGunSystem
|
||||
|
||||
_recharge.Reset(uid);
|
||||
UpdateBasicEntityAppearance(uid, component);
|
||||
Dirty(component);
|
||||
Dirty(uid, component);
|
||||
}
|
||||
|
||||
private void OnBasicEntityAmmoCount(EntityUid uid, BasicEntityAmmoProviderComponent component, ref GetAmmoCountEvent args)
|
||||
@@ -72,7 +72,7 @@ public abstract partial class SharedGunSystem
|
||||
return false;
|
||||
|
||||
component.Count = count;
|
||||
Dirty(component);
|
||||
Dirty(uid, component);
|
||||
UpdateBasicEntityAppearance(uid, component);
|
||||
UpdateAmmoCount(uid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user