[0.17.52] put_item not always followed by build_item
Posted: Thu Jun 27, 2019 9:13 pm
I noticed that a put_item event doesn't fire a build_item event if there is a put_item event in the very next gametick. I noticed while bugfixing my There is my ghost mod.
To reproduce:
- open attached save
- turn on There is my ghost and There is my ghost Blueprint only mode(ctrl+g, ctrl+shift+b by default)
- place an copper pipe on (23,92) and hold
- move between (23,92) and (23,93) quickly while holding the mousebutton
- see the copper UG pipe on (23,93) get brighter because of layered ghosts
Note: The version of There is my ghost that is attached logs the start and end of put_item and build_item including the event parameter of put_item(which shows that there are put items following eachother without build_items)
I realize this might be expected behavior, but it is not documented in put_item, which says that it will be called before a build_item event. This kinda implies that one put_item for every build_item
To reproduce:
- open attached save
- turn on There is my ghost and There is my ghost Blueprint only mode(ctrl+g, ctrl+shift+b by default)
- place an copper pipe on (23,92) and hold
- move between (23,92) and (23,93) quickly while holding the mousebutton
- see the copper UG pipe on (23,93) get brighter because of layered ghosts
Note: The version of There is my ghost that is attached logs the start and end of put_item and build_item including the event parameter of put_item(which shows that there are put items following eachother without build_items)
I realize this might be expected behavior, but it is not documented in put_item, which says that it will be called before a build_item event. This kinda implies that one put_item for every build_item