From b1476730d979685319f0d8e0e39fae418f0113b8 Mon Sep 17 00:00:00 2001 From: Gerkiz Date: Sun, 7 Apr 2024 18:36:34 +0200 Subject: [PATCH] Whisper notice - don't run on non-comfy backend --- utils/whisper_notice.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/whisper_notice.lua b/utils/whisper_notice.lua index 97c4b900..c2b8a1c8 100644 --- a/utils/whisper_notice.lua +++ b/utils/whisper_notice.lua @@ -118,6 +118,11 @@ local function on_console_command(event) return end + local secs = Server.get_current_time() + if not secs then + return + end + local player = game.get_player(event.player_index) local gui_data = get_player_data(player)