Skip to content

Commit

Permalink
Fix config logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Diyagi committed Sep 18, 2024
1 parent eed6c17 commit e877ac4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions AetheryteLinkInChat/AetheryteLinkInChat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,12 @@ private void AppendNearestAetheryteLink(ref SeString message)
}
else if (Config.DisplayLinkAtEnd)
{
var mapIndex = message.Payloads.FindIndex(p => p.GetType() == typeof(MapLinkPayload)) + 8;
message.Payloads.InsertRange(mapIndex, payloads);
message.Payloads.AddRange(payloads);
}
else
{
message.Payloads.AddRange(payloads);
var mapIndex = message.Payloads.FindIndex(p => p.GetType() == typeof(MapLinkPayload)) + 8;
message.Payloads.InsertRange(mapIndex, payloads);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion AetheryteLinkInChat/Config/PluginConfigWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private void DrawGeneralTab()

// Maybe not the best location for this...
if (Config.DisplayLineBreak)
Config.DisplayLinkAtEnd = false;
Config.DisplayLinkAtEnd = true;

ImGui.BeginDisabled(Config.DisplayLineBreak);
ImGui.Checkbox(Localization.DisplayLinkAtEnd, ref Config.DisplayLinkAtEnd);
Expand Down

0 comments on commit e877ac4

Please sign in to comment.