Page 1 of 1

Module limitation format doesn't match docs

Posted: Tue Feb 06, 2018 1:05 pm
by flaghacker_
The docs say:
limitations :: array of string [Read-only]
An array of recipe names this module is allowed to work with.
Can only be used if this is ModuleItem
But testing this in-game:

Code: Select all

/c game.player.print(serpent.line(game.item_prototypes["productivity-module-2"].limitations))
Image

These are values mapped to sequential integers, pretty much the opposite of an array, sequential integers mapped to values. I was surprised by this strange format.

Are the docs wrong or is there a bug in the game?

Re: Module limitation format doesn't match docs

Posted: Tue Feb 06, 2018 3:36 pm
by wheybags
Fixed for 0.16.23, pretty sure it was just a mistake (pushing in the wrong order).
Thanks for the report!