From f8a7d14e42c18f56ca7ed0cd8182e381c98fad26 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Thu, 14 Sep 2017 18:55:22 +0100 Subject: [PATCH] Added Clear Sudo --- locale/ExpGaming-Core/ExpGaming - Server Interface.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/locale/ExpGaming-Core/ExpGaming - Server Interface.lua b/locale/ExpGaming-Core/ExpGaming - Server Interface.lua index dac1c51c..44056408 100644 --- a/locale/ExpGaming-Core/ExpGaming - Server Interface.lua +++ b/locale/ExpGaming-Core/ExpGaming - Server Interface.lua @@ -71,6 +71,10 @@ function get_sudo_info(string) if string then return 'At game tick: '..game.tick..' Queue Lenth: '..#global.sudo.commands..' Number of temp vars: '..lenth else return {tick=game.tick,commands=#global.sudo.commands,temp_varibles=#global.sudo.temp_varibles} end end +-- stops all sudo commands +function clear_sudo() + global.sudo = {commands={},temp_varibles={}} +end --sudo main loop Event.register(defines.events.on_tick, function(event) -- runs the commands in sudo