[Bilka] [0.17.42] API doc says stack can't be string even though it can.

This subforum contains all the issues which we already resolved.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

[Bilka] [0.17.42] API doc says stack can't be string even though it can.

Post by eradicator »

LuaSurface.create_entity{}
item-entity
stack :: SimpleItemStack: The stack of items to create. This must be a table, i.e. a single string is not allowed here.
But a string works just fine (as expected from a SimpleItemStack):

Code: Select all

/c game.surfaces.nauvis.create_entity{name="item-on-ground",position=game.player.position,stack='iron-ore'}
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Bilka
Factorio Staff
Factorio Staff
Posts: 3672
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [Bilka] [0.17.42] API doc says stack can't be string even though it can.

Post by Bilka »

Thanks for the report, fixed for the next version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Resolved Problems and Bugs”