From 4cffe309108d33ea630c67fc886d90a81f3ac69c Mon Sep 17 00:00:00 2001 From: huanghongxun Date: Sun, 23 Jan 2022 15:06:22 +0800 Subject: [PATCH] fix: test build --- .../java/moe/mickey/minecraft/skin/fx/SkinCanvasSupport.java | 2 +- HMCL/src/test/java/moe/mickey/minecraft/skin/fx/test/Test.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HMCL/src/test/java/moe/mickey/minecraft/skin/fx/SkinCanvasSupport.java b/HMCL/src/test/java/moe/mickey/minecraft/skin/fx/SkinCanvasSupport.java index 60c9abac5..51f7826c5 100644 --- a/HMCL/src/test/java/moe/mickey/minecraft/skin/fx/SkinCanvasSupport.java +++ b/HMCL/src/test/java/moe/mickey/minecraft/skin/fx/SkinCanvasSupport.java @@ -101,7 +101,7 @@ public abstract class SkinCanvasSupport implements Consumer { Stage stage = new Stage(); stage.setTitle(title); SkinCanvas canvas = Test.createSkinCanvas(); - canvas.updateSkin(new Image(input), skin.getName().contains("[alex]")); + canvas.updateSkin(new Image(input), skin.getName().contains("[alex]"), null); Scene scene = new Scene(canvas); stage.setScene(scene); stage.show(); diff --git a/HMCL/src/test/java/moe/mickey/minecraft/skin/fx/test/Test.java b/HMCL/src/test/java/moe/mickey/minecraft/skin/fx/test/Test.java index dacb69f1c..6487b6b82 100644 --- a/HMCL/src/test/java/moe/mickey/minecraft/skin/fx/test/Test.java +++ b/HMCL/src/test/java/moe/mickey/minecraft/skin/fx/test/Test.java @@ -17,7 +17,7 @@ public class Test extends Application { public static SkinCanvas createSkinCanvas() { SkinCanvas canvas = new SkinCanvas(SkinCanvas.STEVE, 400, 400, true); - canvas.getAnimationplayer().addSkinAnimation(new SkinAniWavingArms(100, 2000, 7.5, canvas), new SkinAniRunning(100, 100, 30, canvas)); + canvas.getAnimationPlayer().addSkinAnimation(new SkinAniWavingArms(100, 2000, 7.5, canvas), new SkinAniRunning(100, 100, 30, canvas)); FunctionHelper.alwaysB(Consumer::accept, canvas, new SkinCanvasSupport.Mouse(.5), new SkinCanvasSupport.Drag(TITLE)); return canvas; }