mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Fixed logic blocks making clicking noises when not accessible
This commit is contained in:
parent
a07db8a08e
commit
4721086a8e
2 changed files with 10 additions and 11 deletions
|
|
@ -570,13 +570,12 @@ public class LogicBlock extends Block{
|
|||
}
|
||||
|
||||
@Override
|
||||
public void buildConfiguration(Table table){
|
||||
if(!accessible()){
|
||||
//go away
|
||||
deselect();
|
||||
return;
|
||||
}
|
||||
public boolean shouldShowConfigure(Player player){
|
||||
return accessible();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void buildConfiguration(Table table){
|
||||
table.button(Icon.pencil, Styles.cleari, () -> {
|
||||
ui.logic.show(code, executor, privileged, code -> configure(compress(code, relativeConnections())));
|
||||
}).size(40);
|
||||
|
|
|
|||
|
|
@ -97,12 +97,12 @@ public class MessageBlock extends Block{
|
|||
}
|
||||
|
||||
@Override
|
||||
public void buildConfiguration(Table table){
|
||||
if(!accessible()){
|
||||
deselect();
|
||||
return;
|
||||
}
|
||||
public boolean shouldShowConfigure(Player player){
|
||||
return accessible();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void buildConfiguration(Table table){
|
||||
table.button(Icon.pencil, Styles.cleari, () -> {
|
||||
if(mobile){
|
||||
Core.input.getTextInput(new TextInput(){{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue