Module limitation format doesn't match docs

This subforum contains all the issues which we already resolved.
Post Reply
flaghacker_
Burner Inserter
Burner Inserter
Posts: 15
Joined: Tue Mar 01, 2016 8:23 pm
Contact:

Module limitation format doesn't match docs

Post 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?

User avatar
wheybags
Former Staff
Former Staff
Posts: 328
Joined: Fri Jun 02, 2017 1:50 pm
Contact:

Re: Module limitation format doesn't match docs

Post by wheybags »

Fixed for 0.16.23, pretty sure it was just a mistake (pushing in the wrong order).
Thanks for the report!

Post Reply

Return to “Resolved Problems and Bugs”