fix access to console.__add_command

This commit is contained in:
Xertis
2025-11-21 21:33:48 +03:00
parent e7e47df7bf
commit 76be41e8f2
3 changed files with 18 additions and 4 deletions
+4 -1
View File
@@ -171,8 +171,11 @@ function console.log(...)
log_element:paste(text)
end
local console_add_command = console.__add_command
console.__add_command = nil
function console.add_command(scheme, description, handler, is_cheat)
console.__add_command(scheme, description, handler)
console_add_command(scheme, description, handler)
if not is_cheat then return end
local name = string.match(scheme, "^(%S+)")