Page 1 of 1

Player.clean_cursor() return true/false

Posted: Fri Mar 10, 2017 8:54 am
by Nexela
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 :

Code: Select all

player.clean_cursor()
if not player.cursor_stack.valid_for_read then
--code
end
Potential:

Code: Select all

if player.clean_cursor() then
--code
end

Re: Player.clean_cursor() return true/false

Posted: Sun Apr 09, 2017 6:48 pm
by Rseding91
Added for 0.15.