From 205dd6fb8ce06f0cf76362f3c4c4a158d30fef64 Mon Sep 17 00:00:00 2001 From: Azumgi <4zumgi@gmail.com> Date: Thu, 24 Jan 2019 22:47:23 +0300 Subject: [PATCH] [Custom Views] Little style changes --- vmf/scripts/mods/vmf/modules/gui/custom_views.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/vmf/scripts/mods/vmf/modules/gui/custom_views.lua b/vmf/scripts/mods/vmf/modules/gui/custom_views.lua index 0ad4b3a..d892cb6 100644 --- a/vmf/scripts/mods/vmf/modules/gui/custom_views.lua +++ b/vmf/scripts/mods/vmf/modules/gui/custom_views.lua @@ -382,16 +382,13 @@ end -- ##################################################################################################################### -- If VMF is reloaded mid-game, get ingame_ui. -local ingame_ui_exists, ingame_ui_return +local ingame_ui_exists, ingame_ui_return = pcall(function() if VT1 then - ingame_ui_exists, ingame_ui_return = pcall(function() return Managers.player.network_manager.matchmaking_manager.matchmaking_ui.ingame_ui - end) else - ingame_ui_exists, ingame_ui_return = pcall(function() return Managers.player.network_manager.matchmaking_manager._ingame_ui + end end) -end if ingame_ui_exists then _ingame_ui = ingame_ui_return end