mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-09 07:17:36 +07:00
No category switch on rebuild
This commit is contained in:
@ -66,6 +66,7 @@ public class PlacementFragment extends Fragment{
|
||||
public PlacementFragment(){
|
||||
Events.on(WorldLoadEvent.class, event -> {
|
||||
Core.app.post(() -> {
|
||||
currentCategory = Category.distribution;
|
||||
control.input.block = null;
|
||||
rebuild();
|
||||
});
|
||||
@ -87,7 +88,7 @@ public class PlacementFragment extends Fragment{
|
||||
}
|
||||
|
||||
void rebuild(){
|
||||
currentCategory = Category.distribution;
|
||||
//category does not change on rebuild anymore, only on new world load
|
||||
Group group = toggler.parent;
|
||||
int index = toggler.getZIndex();
|
||||
toggler.remove();
|
||||
|
Reference in New Issue
Block a user