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_ » Tue Feb 06, 2018 1:05 pm

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
Factorio Staff
Factorio Staff
Posts: 258
Joined: Fri Jun 02, 2017 1:50 pm
Contact:

Re: Module limitation format doesn't match docs

Post by wheybags » Tue Feb 06, 2018 3:36 pm

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”

Who is online

Users browsing this forum: Google [Bot]