From 7e873b1aff8212897172f8419c5f10e720fbf0e5 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 1 Jan 2018 16:40:02 +0000 Subject: [PATCH] Trying to Fix Desync Error --- ExpCore/commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExpCore/commands.lua b/ExpCore/commands.lua index a3a15871..9e043028 100644 --- a/ExpCore/commands.lua +++ b/ExpCore/commands.lua @@ -105,7 +105,7 @@ local function run_custom_command(command) end -- runs the command local success, err = pcall(command_calls[command.name],event,args) - if err then error(err) end + if not success then error(err) end player_return({'commands.command-ran'},defines.text_color.info) game.write_file('commands.log','\n'..game.tick ..' Player: '..player_name