mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2026-07-21 15:46:52 -06:00
Fix init.lua
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user