mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-14 10:13:13 +02:00
14 lines
256 B
Lua
14 lines
256 B
Lua
|
local Public = {}
|
||
|
|
||
|
function Public.split_ore(ores, split_count)
|
||
|
local new_ores = {}
|
||
|
for _ = 1, split_count do
|
||
|
for _, ore in pairs(ores) do
|
||
|
new_ores[#new_ores + 1] = ore
|
||
|
end
|
||
|
end
|
||
|
|
||
|
return new_ores
|
||
|
end
|
||
|
|
||
|
return Public
|