From ec0be19e545e292d7b3747d92791e1420597e1b0 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Thu, 30 Nov 2017 19:20:11 +0000 Subject: [PATCH] Rename --- ExpLib.lua | 2 +- control.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ExpLib.lua b/ExpLib.lua index 6dc17c0f..8a004503 100644 --- a/ExpLib.lua +++ b/ExpLib.lua @@ -16,7 +16,7 @@ local ExpLib = {} -- @usage a = {k1='foo',k2='bar'} -- _load_to_G(a) -- @tparam table tbl table to add to the global lua table -function ExpLib._load_to_G(tbl) +function ExpLib._unpack_to_G(tbl) if not type(tbl) == 'table' or game then return end for name,value in pairs(tbl) do if not _G[name] then _G[name] = value end diff --git a/control.lua b/control.lua index 8e627d65..586fad64 100644 --- a/control.lua +++ b/control.lua @@ -28,4 +28,4 @@ local Color, Game, Event = require('/locale/StdLib/load'){'Color','Game','Event' -- loads the ExpLib, functions are plased into the lua global local ExpLib = require 'ExpLib' -ExpLib._load_to_G(ExpLib) +ExpLib._unpack_to_G(ExpLib)