mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix headless mode
This commit is contained in:
parent
50f6c48771
commit
17e8d9bb1b
1 changed files with 3 additions and 0 deletions
|
|
@ -1090,6 +1090,9 @@ static int l_gui_load_document(lua::State* L) {
|
|||
}
|
||||
|
||||
static int l_set_syntax_styles(lua::State* L) {
|
||||
if (engine->isHeadless()) {
|
||||
return 0;
|
||||
}
|
||||
engine->getGUI().setSyntaxColorScheme(std::make_unique<FontStylesScheme>(
|
||||
FontStylesScheme::parse(lua::tovalue(L, 1))
|
||||
));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue