mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
Fix crash in headless
This commit is contained in:
parent
41c414db19
commit
2b4c3c08f3
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