Cleanup
This commit is contained in:
@@ -140,7 +140,7 @@ public class Sorter extends Block{
|
||||
@Override
|
||||
public boolean onConfigureTileTapped(Tilec other){
|
||||
if(this == other){
|
||||
control.input.frag.config.hideConfig();
|
||||
deselect();
|
||||
configure(null);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ public class MessageBlock extends Block{
|
||||
});
|
||||
dialog.show();
|
||||
}
|
||||
control.input.frag.config.hideConfig();
|
||||
deselect();
|
||||
}).size(40f);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ public class LightBlock extends Block{
|
||||
public void buildConfiguration(Table table){
|
||||
table.button(Icon.pencil, () -> {
|
||||
ui.picker.show(Tmp.c1.set(color).a(0.5f), false, res -> configure(res.rgba()));
|
||||
control.input.frag.config.hideConfig();
|
||||
deselect();
|
||||
}).size(40f);
|
||||
}
|
||||
|
||||
|
||||
@@ -194,7 +194,9 @@ public class PowerNode extends PowerBlock{
|
||||
|
||||
tempTileEnts.each(valid, t -> {
|
||||
graphs.add(t.power().graph);
|
||||
others.get(t);
|
||||
if(t.power().graph != tile.entity.power().graph){
|
||||
others.get(t);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ public class ItemSource extends Block{
|
||||
@Override
|
||||
public boolean onConfigureTileTapped(Tilec other){
|
||||
if(this == other){
|
||||
control.input.frag.config.hideConfig();
|
||||
deselect();
|
||||
configure(null);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ public class LiquidSource extends Block{
|
||||
@Override
|
||||
public boolean onConfigureTileTapped(Tilec other){
|
||||
if(this == other){
|
||||
control.input.frag.config.hideConfig();
|
||||
deselect();
|
||||
configure(null);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ public class Unloader extends Block{
|
||||
@Override
|
||||
public boolean onConfigureTileTapped(Tilec other){
|
||||
if(this == other){
|
||||
control.input.frag.config.hideConfig();
|
||||
deselect();
|
||||
configure(null);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user