Trying to Fix Desync Error

This commit is contained in:
Unknown
2018-01-01 16:40:02 +00:00
parent 9914773b49
commit 7e873b1aff

View File

@@ -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