From 2b4c3c08f35c0ce0de85789a27b77a47ce134c53 Mon Sep 17 00:00:00 2001 From: Xertis <118364459+Xertis@users.noreply.github.com> Date: Thu, 12 Feb 2026 01:23:35 +0300 Subject: [PATCH] Fix crash in headless --- res/scripts/stdcmd.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/res/scripts/stdcmd.lua b/res/scripts/stdcmd.lua index 900371e49..779ad50bf 100644 --- a/res/scripts/stdcmd.lua +++ b/res/scripts/stdcmd.lua @@ -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