Skip to content

Commit

Permalink
Merge pull request #52 from Interesting-exe/main
Browse files Browse the repository at this point in the history
Prevent menu from being overrun by other plugins and fix recursive equip submenu creation
  • Loading branch information
schwarper committed Jun 11, 2024
2 parents c1f8afd + c054cbf commit ac0d77c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Store/src/menu/menu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public static void DisplayItemOption(CCSPlayerController player, Dictionary<stri
player.PrintToChatMessage("Purchase Unequip", item["name"]);
DisplayItemOption(player, item, option);
DisplayItemOption(player, item, prev);
}, "menu_store<unequip>");
}
else
Expand All @@ -211,7 +211,7 @@ public static void DisplayItemOption(CCSPlayerController player, Dictionary<stri
player.PrintToChatMessage("Purchase Equip", item["name"]);
DisplayItemOption(player, item, option);
DisplayItemOption(player, item, prev);
}, "menu_store<equip>");
}

Expand Down Expand Up @@ -286,7 +286,9 @@ public static void OnTick()

if (player.CenterHtml != "")
{
player.player.PrintToCenterHtml(player.CenterHtml);
Server.NextFrame(() =>
player.player.PrintToCenterHtml(player.CenterHtml)
);
}
}
}
Expand Down

0 comments on commit ac0d77c

Please sign in to comment.