Removed lifetime handling from ImmovableRod and added TimedDespawnComponent to the prototype instead (#9870)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Content.Server.Body.Components;
|
||||
using Content.Server.Body.Components;
|
||||
using Content.Server.Popups;
|
||||
using Content.Shared.Examine;
|
||||
using Content.Shared.Popups;
|
||||
@@ -23,14 +23,6 @@ public sealed class ImmovableRodSystem : EntitySystem
|
||||
// we are deliberately including paused entities. rod hungers for all
|
||||
foreach (var (rod, trans) in EntityManager.EntityQuery<ImmovableRodComponent, TransformComponent>(true))
|
||||
{
|
||||
rod.Accumulator += frameTime;
|
||||
|
||||
if (rod.Accumulator > rod.Lifetime.TotalSeconds)
|
||||
{
|
||||
QueueDel(rod.Owner);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!rod.DestroyTiles)
|
||||
continue;
|
||||
if (!_map.TryGetGrid(trans.GridID, out var grid))
|
||||
|
||||
Reference in New Issue
Block a user