mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix access to console.__add_command
This commit is contained in:
parent
e7e47df7bf
commit
76be41e8f2
3 changed files with 18 additions and 4 deletions
|
|
@ -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+)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue