Page 1 of 1

[1.0.0] core/lualib/builder.lua uses old lua module syntax

Posted: Mon Aug 31, 2020 7:15 pm
by sparr
https://github.com/wube/factorio-data/b ... der.lua#L1

Code: Select all

module(..., package.seeall)
Builder = {}
...
Should maybe be something like

Code: Select all

Builder = {}
...
return Builder

Re: [1.0.0] core/lualib/builder.lua uses old lua module syntax

Posted: Mon Aug 31, 2020 7:21 pm
by Klonan
Who cares, its an unused junk Lua file

Re: [1.0.0] core/lualib/builder.lua uses old lua module syntax

Posted: Mon Aug 31, 2020 9:15 pm
by sparr
It's part of the core library. It appears to do something useful. I might want to require it in my own mod to use its functionality... if I could.

Re: [1.0.0] core/lualib/builder.lua uses old lua module syntax

Posted: Mon Aug 31, 2020 9:41 pm
by sparr
Wouldn't "an unused junk lua file" being in the core distribution of the game itself be a bug?