mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Merge pull request #786 from Xertis/patch-17
Adding debug error to the clear command
This commit is contained in:
commit
91eacca4b9
1 changed files with 1 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ console.add_command(
|
|||
"clear",
|
||||
"Clears the console",
|
||||
function()
|
||||
if not hud then error("command is unavailable in headless mode") return end
|
||||
local document = Document.new("core:console")
|
||||
document.log.text = ""
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue