Extend on_player_fast_transferred with item dropped (Z)

Theis
Inserter
Inserter
Posts: 35
Joined: Tue Sep 13, 2022 9:57 am
Contact:

Extend on_player_fast_transferred with item dropped (Z)

Post by Theis »

Dropping items on entities doesn't trigger any events
There is a fairly specific handling of dropping items on entities where only one item is fast-transferred.
However neither on_player_fast_transferred or on_player_dropped_item triggers when this happens.
Change event fast-transferred
I would prefer that on_player_fast_transferred triggered when this happens and that it was extended with a boolean::is_dropped similar to is_split


I don't know if it is a bug or a missing feature?
GlassBricks
Long Handed Inserter
Long Handed Inserter
Posts: 62
Joined: Fri Jun 11, 2021 5:20 pm
Contact:

Re: Extend on_player_fast_transferred with item dropped (Z)

Post by GlassBricks »

I also have a use case for this (checking module changes).

My current workaround is making a check for changes during on_player_cursor_changed, but that's inefficient and a bit hacky.
Bilka
Factorio Staff
Factorio Staff
Posts: 3644
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Extend on_player_fast_transferred with item dropped (Z)

Post by Bilka »

Combining the events was awkward. Added on_player_dropped_item_into_entity event for 2.0.69.
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 “Implemented mod requests”