Skip to content

Commit

Permalink
chore: fix CA1822 (member can be static)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaleStan committed Nov 5, 2024
1 parent 9994114 commit a5b6317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Yafc/Widgets/ObjectTooltip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ private void BuildGoods(Goods goods, Quality quality, ImGui gui) {
}
}

private void BuildRecipe(RecipeOrTechnology recipe, ImGui gui) {
private static void BuildRecipe(RecipeOrTechnology recipe, ImGui gui) {
using (gui.EnterGroup(contentPadding, RectAllocator.LeftRow)) {
gui.BuildIcon(Icon.Time, 2f, SchemeColor.BackgroundText);
gui.BuildText(DataUtils.FormatAmount(recipe.time, UnitOfMeasure.Second));
Expand Down Expand Up @@ -497,7 +497,7 @@ private void BuildRecipe(RecipeOrTechnology recipe, ImGui gui) {
}
}

private void BuildTechnology(Technology technology, ImGui gui) {
private static void BuildTechnology(Technology technology, ImGui gui) {
bool isResearchTriggerCraft = (technology.flags & RecipeFlags.HasResearchTriggerCraft) == RecipeFlags.HasResearchTriggerCraft;
if (!isResearchTriggerCraft) {
BuildRecipe(technology, gui);
Expand Down

0 comments on commit a5b6317

Please sign in to comment.