Page 1 of 1

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

Posted: Wed May 29, 2019 1:23 pm
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'}

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

Posted: Thu May 30, 2019 8:10 am
by Bilka
Thanks for the report, fixed for the next version.