remove autoignite
This commit is contained in:
@@ -26,7 +26,6 @@ public sealed partial class CP14FireSpreadSystem : EntitySystem
|
||||
public override void Initialize()
|
||||
{
|
||||
SubscribeLocalEvent<CP14FireSpreadComponent, OnFireChangedEvent>(OnCompInit);
|
||||
SubscribeLocalEvent<CP14AutoIgniteComponent, MapInitEvent>(OnMapInit);
|
||||
SubscribeLocalEvent<CP14DespawnOnExtinguishComponent, OnFireChangedEvent>(OnFireChanged);
|
||||
}
|
||||
|
||||
@@ -36,14 +35,6 @@ public sealed partial class CP14FireSpreadSystem : EntitySystem
|
||||
QueueDel(ent);
|
||||
}
|
||||
|
||||
private void OnMapInit(Entity<CP14AutoIgniteComponent> ent, ref MapInitEvent args)
|
||||
{
|
||||
if (!TryComp<FlammableComponent>(ent, out var flammable))
|
||||
return;
|
||||
_flammable.AdjustFireStacks(ent, ent.Comp.StartStack, flammable);
|
||||
_flammable.Ignite(ent, ent, flammable);
|
||||
}
|
||||
|
||||
private void OnCompInit(Entity<CP14FireSpreadComponent> ent, ref OnFireChangedEvent args)
|
||||
{
|
||||
if (!args.OnFire)
|
||||
|
||||
Reference in New Issue
Block a user