mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-03 13:30:25 +07:00
Fixed #9216
This commit is contained in:
parent
e2daf957fb
commit
db60fcd64d
@ -209,17 +209,21 @@ public class PlacementFragment{
|
||||
}
|
||||
|
||||
if(Core.input.keyTap(Binding.category_prev)){
|
||||
int i = 0;
|
||||
do{
|
||||
currentCategory = currentCategory.prev();
|
||||
}while(categoryEmpty[currentCategory.ordinal()]);
|
||||
i ++;
|
||||
}while(categoryEmpty[currentCategory.ordinal()] && i < categoryEmpty.length);
|
||||
input.block = getSelectedBlock(currentCategory);
|
||||
return true;
|
||||
}
|
||||
|
||||
if(Core.input.keyTap(Binding.category_next)){
|
||||
int i = 0;
|
||||
do{
|
||||
currentCategory = currentCategory.next();
|
||||
}while(categoryEmpty[currentCategory.ordinal()]);
|
||||
i ++;
|
||||
}while(categoryEmpty[currentCategory.ordinal()] && i < categoryEmpty.length);
|
||||
input.block = getSelectedBlock(currentCategory);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user