1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-30 04:30:58 +02:00

added LocaleBuilder.new()

This commit is contained in:
grilledham 2019-06-07 10:25:08 +01:00
parent 712e9b2145
commit a86df3917b

View File

@ -90,6 +90,7 @@ function add(self, item)
end end
Public.add = add Public.add = add
function Public.__call(_, item) function Public.__call(_, item)
if item == nil then if item == nil then
item = {''} item = {''}
@ -97,6 +98,15 @@ function Public.__call(_, item)
return add(nil, item) return add(nil, item)
end end
function Public.new(item)
if item == nil then
item = {''}
end
return add(nil, item)
end
setmetatable(Public, Public) setmetatable(Public, Public)
return Public return Public