Replace IResettingEntitySystem with RoundRestartCleanupEvent. (#4245)
* Replace IResettingEntitySystem with RoundRestartCleanupEvent. * oops
This commit is contained in:
committed by
GitHub
parent
16e1c2c798
commit
bc7b315b18
@@ -10,7 +10,7 @@ using Robust.Shared.Prototypes;
|
||||
namespace Content.Server.Plants
|
||||
{
|
||||
[UsedImplicitly]
|
||||
public class PlantSystem : EntitySystem, IResettingEntitySystem
|
||||
public class PlantSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IComponentManager _componentManager = default!;
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
@@ -26,6 +26,8 @@ namespace Content.Server.Plants
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<RoundRestartCleanupEvent>(Reset);
|
||||
|
||||
PopulateDatabase();
|
||||
}
|
||||
|
||||
@@ -73,7 +75,7 @@ namespace Content.Server.Plants
|
||||
}
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
public void Reset(RoundRestartCleanupEvent ev)
|
||||
{
|
||||
PopulateDatabase();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user