From 699c11ebd4f02c74dcd12104915c2119a9f751d5 Mon Sep 17 00:00:00 2001 From: grilledham Date: Tue, 19 Jun 2018 20:08:39 +0100 Subject: [PATCH 1/2] popup bug fix --- popup.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/popup.lua b/popup.lua index 2b270249..4b39c14d 100644 --- a/popup.lua +++ b/popup.lua @@ -71,7 +71,13 @@ local function popup(cmd) return end - local message = cmd.parameter:gsub('\\n', '\n') + local message = cmd.parameter + if not message then + player_print('Usage: /popup ') + return + end + + message = message:gsub('\\n', '\n') for _, p in ipairs(game.connected_players) do show_popup(p, message) From 86b98787365a47225210cf6bfeed02c5903c8a40 Mon Sep 17 00:00:00 2001 From: grilledham Date: Tue, 19 Jun 2018 20:09:29 +0100 Subject: [PATCH 2/2] command desync fix --- custom_commands.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_commands.lua b/custom_commands.lua index f314a810..3cc2a624 100644 --- a/custom_commands.lua +++ b/custom_commands.lua @@ -569,7 +569,8 @@ if not _DEBUG then local success, error = pcall(func, cmd) if not success then log(error) - player_print(error) + --player_print(error) -- This casues desyncs + player_print('Sorry there was an error running '.. cmd.name) end end )