More misc cleanup

This commit is contained in:
Anuken
2022-07-30 23:06:59 -04:00
parent 7df2a7ad43
commit a87aa75adb

View File

@@ -401,13 +401,11 @@ public class PlacementFragment{
mainStack.update(() -> {
if(control.input.commandMode != wasCommandMode){
mainStack.clearChildren();
if(!control.input.commandMode){
mainStack.addChild(control.input.commandMode ? commandTable : blockCatTable);
mainStack.addChild(control.input.commandMode ? commandTable : blockCatTable);
//hacky, but forces command table to be same width as blocks
if(control.input.commandMode){
commandTable.getCells().peek().width(blockCatTable.getWidth());
}
//hacky, but forces command table to be same width as blocks
if(control.input.commandMode){
commandTable.getCells().peek().width(blockCatTable.getWidth());
}
wasCommandMode = control.input.commandMode;