Page 1 of 1
getPrevPlayerTable without index 0
Posted: 25 August 2020, 13:29
by Volker78
In the docs, it was stated, that getPrevPlayerTable behaves like getNextPlayerTable, but it is missing index zero for the first player. I updated the docs, but it would be good, when that index would be added.
Re: getPrevPlayerTable without index 0
Posted: 28 August 2020, 01:42
by Victoria_La
But what if suppose to do if you pass 0? Just return first player? In case just use other function no?
Re: getPrevPlayerTable without index 0
Posted: 05 September 2020, 20:49
by Volker78
yes, it should return first player, like it was documented (it stated "it behaves exactly like the other function, but with prev instead of next")
Re: getPrevPlayerTable without index 0
Posted: 06 September 2020, 03:32
by Victoria_La
Yes its specifically missing from this table, but I think you can just override this method, if you really want it (or override getPlayerBefore)