Closed aSemy closed 2 years ago
Hi, thanks for the suggestion!
I verified that reading ForceIdentification always yields a LuaForce. A similar thing is true for ItemPrototypeSpecification and TechnologyIdentification.
This change was easy enough to implement, so I did just that.
Released in v0.18.1
Thanks for the quick fix! It's really nice using this library.
At the moment, reading
LuaControl.force
returns either astring
orLuaForce
, but it should only return aLuaForce
.However, assigning a
string
should be possible.I think this is probably true anywhere that
ForceIdentification
can be read, but that's a guess. At a minimum it's also documented as the case forLuaControl.force
LuaEntity.render_to_forces
BaseEntity.render_to_forces
I also guess this is similar to #7
This is a really minor issue, it's not disrupting me, it's just something I noticed.
https://lua-api.factorio.com/latest/LuaControl.html#LuaControl.force