update to 1.19.2 (#151)

Co-authored-by: Cloudburst <18114966+C10udburst@users.noreply.github.com>
This commit is contained in:
ThebestkillerTBK
2022-08-19 20:27:34 +08:00
committed by GitHub
parent 8d0ea9869e
commit 4b811f7c1b
4 changed files with 14 additions and 13 deletions

View File

@@ -43,7 +43,7 @@ public class SaveSkinCommand extends Command {
@Override
public void build(LiteralArgumentBuilder<CommandSource> builder) {
builder.then(argument("player", PlayerArgumentType.player()).executes(ctx -> {
builder.then(argument("player", PlayerArgumentType.create()).executes(ctx -> {
PlayerEntity playerEntity = ctx.getArgument("player", PlayerEntity.class);
String path = TinyFileDialogs.tinyfd_saveFileDialog("Save image", null, filters, null);
if (path == null) IO_EXCEPTION.create();