From 909f4ce42696d0676eccae9c05108a81ef5d2302 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Thu, 29 Apr 2021 21:39:09 +0100 Subject: [PATCH] Removed player editing during add_task --- modules/control/tasks.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/modules/control/tasks.lua b/modules/control/tasks.lua index 8f25de8a..04d61b4d 100644 --- a/modules/control/tasks.lua +++ b/modules/control/tasks.lua @@ -55,12 +55,6 @@ function Tasks.add_task(force_name, player_name, task_title, task_body) -- Insert the task id into the forces tasks table.insert(task_ids, task_id) - -- Create the editing table - local editing = {} - if player_name then - editing[player_name] = true - end - -- Add the new task to the store TaskData:set(task_id, { task_id = task_id, @@ -69,7 +63,7 @@ function Tasks.add_task(force_name, player_name, task_title, task_body) body = task_body or '', last_edit_name = player_name or '', last_edit_time = game.tick, - currently_editing = editing + currently_editing = {} }) return task_id