From 64fcd3749f25aacb6a825e4bf96b971b2e12f888 Mon Sep 17 00:00:00 2001 From: kookroach <62265045+kookroach@users.noreply.github.com> Date: Sat, 3 Apr 2021 20:34:34 +0200 Subject: [PATCH] Fix small typo --- ReallifeGamemode.Client/Interaction/worldinteraction.ts | 4 ++-- ReallifeGamemode.Client/inputhelper/index.ts | 2 -- ReallifeGamemode.Client/util/planeschool.ts | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ReallifeGamemode.Client/Interaction/worldinteraction.ts b/ReallifeGamemode.Client/Interaction/worldinteraction.ts index 554e453a..36bbabff 100644 --- a/ReallifeGamemode.Client/Interaction/worldinteraction.ts +++ b/ReallifeGamemode.Client/Interaction/worldinteraction.ts @@ -12,7 +12,7 @@ export default function worldInteraction() { mp.gui.chat.show(false); mp.game.ui.displayHud(false); mp.game.ui.displayRadar(false); - GlobalData.InInput = true; + GlobalData.InMenu = true; atmBrowser = mp.browsers.new("package://assets/html/atm/index.html"); } }); @@ -23,7 +23,7 @@ export default function worldInteraction() { mp.game.ui.displayHud(true); mp.game.ui.displayRadar(true); inAtm = false; - GlobalData.InInput = false; + GlobalData.InMenu = false; atmBrowser.destroy(); }); diff --git a/ReallifeGamemode.Client/inputhelper/index.ts b/ReallifeGamemode.Client/inputhelper/index.ts index 5ea5a963..ce216572 100644 --- a/ReallifeGamemode.Client/inputhelper/index.ts +++ b/ReallifeGamemode.Client/inputhelper/index.ts @@ -36,7 +36,6 @@ export default class InputHelper { show() { if (this.created) return; this.data.InMenu = true; - this.data.InInput = true; this.created = true; this.browser = mp.browsers.new('package://assets/html/inputhelper/index.html'); mp.gui.cursor.show(true, true); @@ -50,7 +49,6 @@ export default class InputHelper { mp.events.remove('cef_request_title'); mp.events.remove('closeinputhelper'); this.browser.destroy(); - this.data.InInput = false; this.data.InMenu = false; this.created = false; this.browser = null; diff --git a/ReallifeGamemode.Client/util/planeschool.ts b/ReallifeGamemode.Client/util/planeschool.ts index af408a45..992b871e 100644 --- a/ReallifeGamemode.Client/util/planeschool.ts +++ b/ReallifeGamemode.Client/util/planeschool.ts @@ -62,7 +62,7 @@ export default function planeSchoolHandle(globalData: IGlobalData) { }; function keyPressHandler() { - if (globalData.InChat || globalData.InMenu || globalData.InMenu) return; + if (globalData.InChat || globalData.InMenu) return; mp.events.call('removeplaneSchoolMenu', false); mp.events.callRemote('startplaneSchool');