mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +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",
|
"clear",
|
||||||
"Clears the console",
|
"Clears the console",
|
||||||
function()
|
function()
|
||||||
|
if not hud then error("command is unavailable in headless mode") return end
|
||||||
local document = Document.new("core:console")
|
local document = Document.new("core:console")
|
||||||
document.log.text = ""
|
document.log.text = ""
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue