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