From f2c5bda7b47126bf2a4c4651b27233722b0ce5e2 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Mon, 21 Aug 2017 12:03:42 +0100 Subject: [PATCH] added name to data passed --- locale/ExpGaming-Core/ExpGaming - Server Interface.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/ExpGaming-Core/ExpGaming - Server Interface.lua b/locale/ExpGaming-Core/ExpGaming - Server Interface.lua index aaf6d9bd..4544e187 100644 --- a/locale/ExpGaming-Core/ExpGaming - Server Interface.lua +++ b/locale/ExpGaming-Core/ExpGaming - Server Interface.lua @@ -84,7 +84,7 @@ Event.register(defines.events.on_tick, function(event) local args = {} -- retrives and temp varibles for n,value in pairs(command.args) do - if type(value) == 'table' and not value.__self and value.sudo and value.sudo == 'sudo-temp-var' then args[n] = global.sudo.temp_varibles[value.name].data + if type(value) == 'table' and not value.__self and value.sudo and value.sudo == 'sudo-temp-var' then args[n] = {data=global.sudo.temp_varibles[value.name].data,temp_var_name=value.name} else args[n] = value end end -- makes new temp value and runs command