mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
fix: console/chat open still available when menu is open & cleanup
This commit is contained in:
parent
31d5cb6880
commit
c7061c70cb
3 changed files with 8 additions and 6 deletions
|
|
@ -330,7 +330,7 @@ function __vc_on_hud_open()
|
|||
hud._set_debug_cheats(value)
|
||||
end)
|
||||
input.add_callback("devtools.console", function()
|
||||
if hud.is_paused() then
|
||||
if menu.page ~= "" then
|
||||
return
|
||||
end
|
||||
time.post_runnable(function()
|
||||
|
|
@ -338,7 +338,7 @@ function __vc_on_hud_open()
|
|||
end)
|
||||
end)
|
||||
input.add_callback("hud.chat", function()
|
||||
if hud.is_paused() then
|
||||
if menu.page ~= "" then
|
||||
return
|
||||
end
|
||||
time.post_runnable(function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue