Skip to content

Commit

Permalink
removed useless code that was breaking mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
RickyB505 committed Nov 3, 2023
1 parent d9aa568 commit c3eb35f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions vMenu/MainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public class MainMenu : BaseScript
public static bool PermissionsSetupComplete => ArePermissionsSetup;
public static bool ConfigOptionsSetupComplete = false;

//public static Control MenuToggleKey { get { return MenuController.MenuToggleKey; } private set { MenuController.MenuToggleKey = value; } } // M by default (InteractionMenu)
public static string MenuToggleKey { get; private set; } = "M"; // M by default
public static string NoClipKey { get; private set; } = "F2"; // F2 by default
public static Menu Menu { get; private set; }
Expand Down Expand Up @@ -346,7 +345,6 @@ public MainMenu()
// Request server state from the server.
TriggerServerEvent("vMenu:RequestServerState");

MenuController.MenuToggleKey = (Control)(-1); // disables the menu toggle keyMenuController.MenuToggleKey = (Control)(-1); // disables the menu toggle key
}

#region Infinity bits
Expand Down Expand Up @@ -481,7 +479,6 @@ static bool canUseMenu()
MenuController.DisableMenuButtons = true;
MenuController.DontOpenAnyMenu = true;
MenuEnabled = false;
MenuController.MenuToggleKey = (Control)(-1); // disables the menu toggle key
return;
}
// Create the main menu.
Expand Down

0 comments on commit c3eb35f

Please sign in to comment.