From 56a75319a5d47387389308c0e5d87bf669afe037 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Mon, 21 Aug 2017 11:56:05 +0100 Subject: [PATCH] Fixed that bug finnaly --- 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 b8976528..aaf6d9bd 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) == 'list' 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] = global.sudo.temp_varibles[value.name].data else args[n] = value end end -- makes new temp value and runs command