Add ImplicitRoofComponent (#36112)
* Add ImplicitRoofComponent So shuttles get marked as rooved. * Early-out So the new render doesn't suck up perf unnecessarily.
This commit is contained in:
@@ -11,6 +11,7 @@ using Content.Server.Stunnable;
|
||||
using Content.Shared.Buckle.Components;
|
||||
using Content.Shared.Damage;
|
||||
using Content.Shared.GameTicking;
|
||||
using Content.Shared.Light.Components;
|
||||
using Content.Shared.Inventory;
|
||||
using Content.Shared.Mobs.Systems;
|
||||
using Content.Shared.Movement.Events;
|
||||
@@ -121,7 +122,8 @@ public sealed partial class ShuttleSystem : SharedShuttleSystem
|
||||
if (HasComp<MapComponent>(ev.EntityUid))
|
||||
return;
|
||||
|
||||
EntityManager.EnsureComponent<ShuttleComponent>(ev.EntityUid);
|
||||
EnsureComp<ShuttleComponent>(ev.EntityUid);
|
||||
EnsureComp<ImplicitRoofComponent>(ev.EntityUid);
|
||||
}
|
||||
|
||||
private void OnShuttleStartup(EntityUid uid, ShuttleComponent component, ComponentStartup args)
|
||||
|
||||
Reference in New Issue
Block a user