InventoryPosition stack is 0-based

Honktown
Smart Inserter
Smart Inserter
Posts: 1052
Joined: Thu Oct 03, 2019 7:10 am
Contact:

InventoryPosition stack is 0-based

Post by Honktown »

It would be appreciated if https://lua-api.factorio.com/2.0.43/con ... ition.html was noted to use 0-based inventory indexing, in contrast to other inventory stack index behavior.

It is noted in a forum post, this behavior is "intended" unless a larger change is made for backwards-compatibility: viewtopic.php?p=627359
I have mods! I guess!
Link
User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 324
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: InventoryPosition stack is 0-based

Post by Therenas »

Noted for the next release, thanks.
Post Reply

Return to “Resolved Requests”