Page 1 of 1
[boskid][1.1.25] Placing a (mod) item destroys a number of items in my inventory - new bug
Posted: Mon Mar 01, 2021 2:59 am
by Honktown
- wat.zip
- (749.73 KiB) Downloaded 128 times
- same_place_result.png (376.15 KiB) Viewed 2390 times
Same code, Factorio 1.0 version of mod that does not have the bug:
I used /cheat to test the mod and get the items, but am placing the item(s) with my character. Save (for 1.1.25) is included as example.
The items have the same place_result, so that is probably related.
Additionally, only items which are sorted *left* of the item used are destroyed. If a different tank item (color) is chosen, the tanks after that one do not get obliterated.
Re: [boskid][1.1.25] Placing a (mod) item destroys a number of items in my inventory - new bug
Posted: Mon Mar 01, 2021 11:25 am
by boskid
Ok so the issue emerged after the smart belt building was introduced because in those cases you hold one item (transport belt) and underground may be placed and there have to be some items to be removed directly from the inventory. That logic however was not accounting for the multiple items to place given entity. Issue is now fixed for 1.1.26 and there is a test added so it should not happen again.