add item deselect
This commit is contained in:
parent
ac65a43bbc
commit
46c95630f3
1 changed files with 3 additions and 1 deletions
|
@ -1557,8 +1557,10 @@ public class Client implements IThreadListener {
|
|||
private void select(int dir) {
|
||||
int last = this.player.getSelectedIndex();
|
||||
int n = 0;
|
||||
if(last < 0)
|
||||
if(last < 0) {
|
||||
last = 0;
|
||||
this.player.setSelectedIndex(0);
|
||||
}
|
||||
do {
|
||||
this.player.setSelectedIndex(this.player.getSelectedIndex() + dir);
|
||||
if(this.player.getSelectedIndex() < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue