mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2024-11-17 04:44:23 +00:00
Fix init.lua
This commit is contained in:
parent
7c7de1db0c
commit
4631216c27
5
init.lua
5
init.lua
@ -1,5 +1,6 @@
|
|||||||
-- Helper Lua file for easy require if tiny-ecs is used as a git submodule or
|
-- Helper Lua file for easy require if tiny-ecs is used as a git submodule or
|
||||||
-- folder. Not needed in many cases, including luarocks distribution.
|
-- folder. Not needed in many cases, including luarocks distribution.
|
||||||
|
|
||||||
local directory = (...):match("(.-)[^%.]+$")
|
local args = {...}
|
||||||
return require(directory .. 'tiny')
|
local directory = args[1]
|
||||||
|
return require(directory .. '.tiny')
|
||||||
|
Loading…
Reference in New Issue
Block a user