No category switch on rebuild

This commit is contained in:
Anuken
2022-01-24 12:44:34 -05:00
parent 39f59b8040
commit b99a750655

View File

@ -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();