From 6827bf7300892c8ecb007278d440ca7084686688 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Wed, 19 Jul 2017 20:39:24 +0100 Subject: [PATCH] Commands now in global list --- locale/ExpGaming-Core/ExpGaming - Command Maker.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/locale/ExpGaming-Core/ExpGaming - Command Maker.lua b/locale/ExpGaming-Core/ExpGaming - Command Maker.lua index f9f3d982..fb572cb5 100644 --- a/locale/ExpGaming-Core/ExpGaming - Command Maker.lua +++ b/locale/ExpGaming-Core/ExpGaming - Command Maker.lua @@ -76,6 +76,7 @@ function load_command(command) end) end +Event.register(-1,function() global.commands = Exp_commands end) Event.register(defines.events.on_player_joined_game,function() for _,command in pairs(Exp_commands) do load_command(command) end end) --Please Only Edit Above This Line----------------------------------------------------------- return credits \ No newline at end of file