From 961dc3f34cb85b4d8d55f3dd69a4d595ac70cf30 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Fri, 9 Nov 2018 18:48:38 +0000 Subject: [PATCH] Fixed Sync Emit --- modules/ExpGamingCore/Sync/control.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/ExpGamingCore/Sync/control.lua b/modules/ExpGamingCore/Sync/control.lua index 77ef7618..4a240230 100644 --- a/modules/ExpGamingCore/Sync/control.lua +++ b/modules/ExpGamingCore/Sync/control.lua @@ -234,6 +234,14 @@ Sync.info = setmetatable({},{ if not is_type(set,'table') then return false end for key,value in pairs(set) do global[key] = value end return true + end, + __pairs=function(tbl) + local tbl = global + local function next_pair(tbl,k) + k, v = next(tbl, k) + if type(v) ~= nil then return k,v end + end + return next_pair, tbl, nil end })