Fix crash in headless

This commit is contained in:
Xertis 2026-02-12 01:23:35 +03:00 • committed by GitHub
parent 41c414db19
commit 2b4c3c08f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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