Allow named worlds

This commit is contained in:
Tjakka5 2019-12-19 20:14:21 +01:00
parent d4efca976c
commit d0e227485e
6 changed files with 50 additions and 7 deletions

View file

@ -38,7 +38,7 @@ end
-- @return A new initialized Bag
function Component:__initialize(...)
if self.__populate then
local bag = setmetatable({}, self.__mt)
local bag = setmetatable({}, self)
self.__populate(bag, ...)
return bag