Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
add empty comp for fix friction grids
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh1ntra committed Jun 15, 2024
1 parent 158165d commit a410728
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Content.Shared/Corvax/Physics/FrictionRemoverSystem.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Content.Shared.Corvax.VoidContainerComponent;
using Content.Shared.EntityList;
using Content.Shared.Tiles;
using Robust.Shared.Physics;
Expand All @@ -21,7 +22,8 @@ public override void Initialize()

private void RemoveDampening(EntityUid uid, PhysicsComponent component, PhysicsSleepEvent args)
{
if (EntityManager.TryGetComponent(uid, out ProtectedGridComponent? protectedGridComp))
if (EntityManager.TryGetComponent(uid, out VoidContainerComponent? voidContainerComp)||
EntityManager.TryGetComponent(uid, out ProtectedGridComponent? protectedGridComp))
return;

_physics.SetAngularDamping(component, 0, false);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Content.Shared.Corvax.VoidContainerComponent;

[RegisterComponent]
public sealed partial class VoidContainerComponent : Component
{

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Content.Shared.Corvax.VoidContainerComponent
{
public sealed class VoidContainerSystem : EntitySystem
{

}
}
1 change: 1 addition & 0 deletions Resources/Maps/_NF/POI/anomalouslab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ entities:
entities:
- uid: 1
components:
- type: VoidContainer
- type: MetaData
name: Anomalous Laboratory
- type: Transform
Expand Down

0 comments on commit a410728

Please sign in to comment.