Inline Delete
This commit is contained in:
@@ -238,7 +238,7 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
|
||||
|
||||
if (ammoComponent.Caseless)
|
||||
{
|
||||
ammo.Delete();
|
||||
IoCManager.Resolve<IEntityManager>().DeleteEntity(ammo.Uid);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -187,7 +187,7 @@ namespace Content.Server.Weapon.Ranged
|
||||
|
||||
user.PopupMessage(Loc.GetString("server-ranged-weapon-component-try-fire-clumsy"));
|
||||
|
||||
Owner.Delete();
|
||||
IoCManager.Resolve<IEntityManager>().DeleteEntity(Owner.Uid);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user