Content update for NetEntities (#18935)
This commit is contained in:
@@ -28,7 +28,6 @@ namespace Content.Server.Shuttles.Systems
|
||||
[Dependency] private readonly SharedPhysicsSystem _physics = default!;
|
||||
[Dependency] private readonly SharedTransformSystem _transform = default!;
|
||||
|
||||
private ISawmill _sawmill = default!;
|
||||
private const string DockingFixture = "docking";
|
||||
private const string DockingJoint = "docking";
|
||||
private const float DockingRadius = 0.20f;
|
||||
@@ -36,7 +35,6 @@ namespace Content.Server.Shuttles.Systems
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
_sawmill = Logger.GetSawmill("docking");
|
||||
SubscribeLocalEvent<DockingComponent, ComponentStartup>(OnStartup);
|
||||
SubscribeLocalEvent<DockingComponent, ComponentShutdown>(OnShutdown);
|
||||
SubscribeLocalEvent<DockingComponent, AnchorStateChangedEvent>(OnAnchorChange);
|
||||
@@ -114,7 +112,7 @@ namespace Content.Server.Shuttles.Systems
|
||||
if (otherDockingFixture == null)
|
||||
{
|
||||
DebugTools.Assert(false);
|
||||
_sawmill.Error($"Found null docking fixture on {ent}");
|
||||
Log.Error($"Found null docking fixture on {ent}");
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -159,7 +157,7 @@ namespace Content.Server.Shuttles.Systems
|
||||
!TryComp(dockBUid, out DockingComponent? dockB))
|
||||
{
|
||||
DebugTools.Assert(false);
|
||||
_sawmill.Error($"Tried to cleanup {dockAUid} but not docked?");
|
||||
Log.Error($"Tried to cleanup {dockAUid} but not docked?");
|
||||
|
||||
dockA.DockedWith = null;
|
||||
if (dockA.DockJoint != null)
|
||||
@@ -288,7 +286,7 @@ namespace Content.Server.Shuttles.Systems
|
||||
(dockAUid, dockBUid) = (dockBUid, dockAUid);
|
||||
}
|
||||
|
||||
_sawmill.Debug($"Docking between {dockAUid} and {dockBUid}");
|
||||
Log.Debug($"Docking between {dockAUid} and {dockBUid}");
|
||||
|
||||
// https://gamedev.stackexchange.com/questions/98772/b2distancejoint-with-frequency-equal-to-0-vs-b2weldjoint
|
||||
|
||||
|
||||
Reference in New Issue
Block a user