Pls add player screen events, like moving items from, to and dropping of screens.
deli73 opened this issue ยท 1 comments
i was using scarpet to try and return an item directly to the player when they drop it, and i used the following code to schedule an event:
__on_player_drops_item(self) -> (
schedule(0,'_return_to_inventory', self)
);
__on_player_drops_stack(self) -> (
schedule(0,'_return_to_inventory', self)
);
This works fine when the player uses the drop keybind to drop the item, but when opening the inventory and clicking outside the GUI, the item drops normally and doesn't trigger either event. Seems like an oversight!
(sidenote: i can handle this in __on_tick()
instead, technically, but i'd really rather not check more often than necessary)