Fixes conveyor belts enabling collisions of opened blast doors when turning on (#11727)
This commit is contained in:
@@ -153,10 +153,13 @@ namespace Content.Server.Physics.Controllers
|
|||||||
if (!bodyQuery.TryGetComponent(entity, out var physics))
|
if (!bodyQuery.TryGetComponent(entity, out var physics))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (physics.BodyType != BodyType.Static)
|
||||||
|
{
|
||||||
_physics.WakeBody(physics);
|
_physics.WakeBody(physics);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public bool CanRun(ConveyorComponent component)
|
public bool CanRun(ConveyorComponent component)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user