internal sealed class PandorasBoxIpc
{
private readonly ILogger<PandorasBoxIpc> _logger;
- private readonly ICallGateSubscriber<string,bool> _getFeatureEnabled;
+ private readonly ICallGateSubscriber<string,bool?> _getFeatureEnabled;
private bool _loggedIpcError;
public PandorasBoxIpc(IDalamudPluginInterface pluginInterface, ILogger<PandorasBoxIpc> logger)
{
_logger = logger;
- _getFeatureEnabled = pluginInterface.GetIpcSubscriber<string, bool>("PandorasBox.GetFeatureEnabled");
+ _getFeatureEnabled = pluginInterface.GetIpcSubscriber<string, bool?>("PandorasBox.GetFeatureEnabled");
logger.LogInformation("Pandora's Box auto active time maneuver enabled: {IsAtmEnabled}", IsAutoActiveTimeManeuverEnabled);
}
{
try
{
- return _getFeatureEnabled.InvokeFunc("Auto Active Time Maneuver");
+ return _getFeatureEnabled.InvokeFunc("Auto Active Time Maneuver") == true;
}
catch (IpcError e)
{