Inline QueueDelete
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Content.Server.Botany.Components
|
||||
plank.RandomOffset(0.25f);
|
||||
}
|
||||
|
||||
Owner.QueueDelete();
|
||||
IoCManager.Resolve<IEntityManager>().QueueDeleteEntity(Owner.Uid);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -661,7 +661,7 @@ namespace Content.Server.Botany.Components
|
||||
if (seeds.Seed == null)
|
||||
{
|
||||
user.PopupMessageCursor(Loc.GetString("plant-holder-component-empty-seed-packet-message"));
|
||||
usingItem.QueueDelete();
|
||||
IoCManager.Resolve<IEntityManager>().QueueDeleteEntity(usingItem.Uid);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -675,7 +675,7 @@ namespace Content.Server.Botany.Components
|
||||
Health = Seed.Endurance;
|
||||
_lastCycle = _gameTiming.CurTime;
|
||||
|
||||
usingItem.QueueDelete();
|
||||
IoCManager.Resolve<IEntityManager>().QueueDeleteEntity(usingItem.Uid);
|
||||
|
||||
CheckLevelSanity();
|
||||
UpdateSprite();
|
||||
@@ -823,7 +823,7 @@ namespace Content.Server.Botany.Components
|
||||
ForceUpdateByExternalCause();
|
||||
}
|
||||
|
||||
usingItem.QueueDelete();
|
||||
IoCManager.Resolve<IEntityManager>().QueueDeleteEntity(usingItem.Uid);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Content.Server.Botany.Components
|
||||
{
|
||||
eventArgs.User.PopupMessageCursor(Loc.GetString("seed-extractor-component-interact-message",("name", eventArgs.Using.Name)));
|
||||
|
||||
eventArgs.Using.QueueDelete();
|
||||
IoCManager.Resolve<IEntityManager>().QueueDeleteEntity(eventArgs.Using.Uid);
|
||||
|
||||
var random = _random.Next(_minSeeds, _maxSeeds);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user