Content ecs containers (#22484)
This commit is contained in:
@@ -48,7 +48,7 @@ public abstract partial class SharedGunSystem
|
||||
return;
|
||||
|
||||
component.Entities.Add(args.Used);
|
||||
component.Container.Insert(args.Used);
|
||||
Containers.Insert(args.Used, component.Container);
|
||||
// Not predicted so
|
||||
Audio.PlayPredicted(component.SoundInsert, uid, args.User);
|
||||
args.Handled = true;
|
||||
@@ -241,7 +241,7 @@ public abstract partial class SharedGunSystem
|
||||
|
||||
args.Ammo.Add((entity, EnsureShootable(entity)));
|
||||
component.Entities.RemoveAt(component.Entities.Count - 1);
|
||||
component.Container.Remove(entity);
|
||||
Containers.Remove(entity, component.Container);
|
||||
}
|
||||
else if (component.UnspawnedCount > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user