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:
parent
712e9b2145
commit
a86df3917b
@ -90,6 +90,7 @@ function add(self, item)
|
||||
end
|
||||
|
||||
Public.add = add
|
||||
|
||||
function Public.__call(_, item)
|
||||
if item == nil then
|
||||
item = {''}
|
||||
@ -97,6 +98,15 @@ function Public.__call(_, item)
|
||||
|
||||
return add(nil, item)
|
||||
end
|
||||
|
||||
function Public.new(item)
|
||||
if item == nil then
|
||||
item = {''}
|
||||
end
|
||||
|
||||
return add(nil, item)
|
||||
end
|
||||
|
||||
setmetatable(Public, Public)
|
||||
|
||||
return Public
|
||||
|
Loading…
x
Reference in New Issue
Block a user