mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-20 19:42:20 -08:00
Crash fix
This commit is contained in:
parent
7fd05b7ca6
commit
9ab3f7e5aa
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ public abstract class Platform {
|
|||
|
||||
dialog.content().addImageButton("icon-paste", "clear", 16*3, () ->
|
||||
use[0].paste(Gdx.app.getClipboard().getContents(), false))
|
||||
.visible(() -> !Gdx.app.getClipboard().getContents().isEmpty()).width(65f);
|
||||
.visible(() -> Gdx.app.getClipboard() != null && Gdx.app.getClipboard().getContents() != null && !Gdx.app.getClipboard().getContents().isEmpty()).width(65f);
|
||||
|
||||
TextField to = dialog.content().addField(field.getText(), t-> {}).pad(15).width(250f).get();
|
||||
to.setMaxLength(maxLength);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue