Page 1 of 1

on_player_cursor_stack_changed is not raised immediately

Posted: Thu Dec 28, 2023 8:07 pm
by curiosity
IDK when it is raised, but it should be pointed out in the docs that it's not immediately.

Re: on_player_cursor_stack_changed is not raised immediately

Posted: Mon Jan 01, 2024 1:53 pm
by Bilka
Hey, it already says that it is raised in the current_tick (instead of instantly) here: https://lua-api.factorio.com/latest/cla ... ear_cursor

I see no other mention of that event in the docs, except for the event itself. Do you mean that it should be mentioned in the event description?

Re: on_player_cursor_stack_changed is not raised immediately

Posted: Mon Jan 01, 2024 5:12 pm
by curiosity
Sorry, didn't notice that. Yes, it should be in the event description, since it's the property of the event and not merely how it was raised. You can operate on the stack directly to change it and that also raises the event (and isn't mentioned anywhere, AFAICT).

Re: on_player_cursor_stack_changed is not raised immediately

Posted: Wed Jan 10, 2024 11:11 am
by Bilka
Okay, added for the next release (1.1.102).