forked from liza/ARDiscard
Fix timings
This commit is contained in:
parent
2bb7f2aef3
commit
2fbf350c97
@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net7.0-windows</TargetFramework>
|
<TargetFramework>net7.0-windows</TargetFramework>
|
||||||
<Version>1.0</Version>
|
<Version>1.1</Version>
|
||||||
<LangVersion>11.0</LangVersion>
|
<LangVersion>11.0</LangVersion>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||||
|
@ -47,7 +47,6 @@ public class AutoDiscardPlogon : IDalamudPlugin
|
|||||||
_pluginInterface.UiBuilder.Draw += _windowSystem.Draw;
|
_pluginInterface.UiBuilder.Draw += _windowSystem.Draw;
|
||||||
_pluginInterface.UiBuilder.OpenConfigUi += OpenConfigUi;
|
_pluginInterface.UiBuilder.OpenConfigUi += OpenConfigUi;
|
||||||
_configWindow = new(_pluginInterface, _configuration, dataManager);
|
_configWindow = new(_pluginInterface, _configuration, dataManager);
|
||||||
_configWindow.IsOpen = true;
|
|
||||||
_windowSystem.AddWindow(_configWindow);
|
_windowSystem.AddWindow(_configWindow);
|
||||||
|
|
||||||
ECommonsMain.Init(_pluginInterface, this);
|
ECommonsMain.Init(_pluginInterface, this);
|
||||||
@ -103,7 +102,7 @@ public class AutoDiscardPlogon : IDalamudPlugin
|
|||||||
|
|
||||||
_taskManager.DelayNext(5);
|
_taskManager.DelayNext(5);
|
||||||
_taskManager.Enqueue(ConfirmDiscardItem);
|
_taskManager.Enqueue(ConfirmDiscardItem);
|
||||||
_taskManager.DelayNext(2000);
|
_taskManager.DelayNext(20);
|
||||||
_taskManager.Enqueue(() => ContinueAfterDiscard(finishRetainerAction, inventoryType, slot));
|
_taskManager.Enqueue(() => ContinueAfterDiscard(finishRetainerAction, inventoryType, slot));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -131,7 +130,7 @@ public class AutoDiscardPlogon : IDalamudPlugin
|
|||||||
|
|
||||||
if (nextItem->Container == inventoryType && nextItem->Slot == slot)
|
if (nextItem->Container == inventoryType && nextItem->Slot == slot)
|
||||||
{
|
{
|
||||||
_taskManager.DelayNext(100);
|
_taskManager.DelayNext(20);
|
||||||
_taskManager.Enqueue(() => ContinueAfterDiscard(finishRetainerAction, inventoryType, slot));
|
_taskManager.Enqueue(() => ContinueAfterDiscard(finishRetainerAction, inventoryType, slot));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user