Skip to content

Commit 83dde99

Browse files
ZackeryRSmithKANAjetzt
authored andcommitted
chore: simplify editor check in _print_rich
1 parent 4316044 commit 83dde99

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

addons/mod_loader/api/log.gd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,7 @@ static func get_all_entries_as_string(log_entries: Array) -> Array:
403403
# =============================================================================
404404

405405
static func _print_rich(prefix: String, message: String, color: Color, bold := true) -> void:
406-
var in_editor: bool = OS.has_feature("editor") if not ModLoaderStore else ModLoaderStore.has_feature.editor
407-
if in_editor:
406+
if OS.has_feature("editor"):
408407
var prefix_text := "[b]%s[/b]" % prefix if bold else prefix
409408
print_rich("[color=%s]%s[/color]%s" % [
410409
color.to_html(false),

0 commit comments

Comments
 (0)