Merge pull request #786 from Xertis/patch-17

Adding debug error to the clear command
This commit is contained in:
MihailRis 2026-02-12 16:45:37 +03:00 • committed by GitHub
commit 91eacca4b9
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