Player.clean_cursor() return true/false
Posted: Fri Mar 10, 2017 8:54 am
If this is easily possible could player.clean_cursor() return true if it was able to fully clear the cursor/cursor is already empty or false if something still remains in the cursor.
This is more of a make code prettier request then anything
Thanks for looking into this!
Currently :
Potential:
This is more of a make code prettier request then anything
![Smile :)](./images/smilies/icon_e_smile.gif)
Currently :
Code: Select all
player.clean_cursor()
if not player.cursor_stack.valid_for_read then
--code
end
Code: Select all
if player.clean_cursor() then
--code
end