From af53383199c7cbb8d6c2d72672656c9df793fc42 Mon Sep 17 00:00:00 2001 From: Ne_Eo Date: Mon, 28 Oct 2024 22:58:03 +0100 Subject: [PATCH] Small change --- source/funkin/game/Character.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/game/Character.hx b/source/funkin/game/Character.hx index fe33b8bd..5f02dbd0 100644 --- a/source/funkin/game/Character.hx +++ b/source/funkin/game/Character.hx @@ -330,7 +330,7 @@ class Character extends FunkinSprite implements IBeatReceiver implements IOffset if (xml.x.exists("gameOverChar")) gameOverCharacter = xml.x.get("gameOverChar"); if (xml.x.exists("camx")) cameraOffset.x = Std.parseFloat(xml.x.get("camx")); if (xml.x.exists("camy")) cameraOffset.y = Std.parseFloat(xml.x.get("camy")); - if (xml.x.exists("holdTime")) holdTime = CoolUtil.getDefault(Std.parseFloat(xml.x.get("holdTime")), 4); + if (xml.x.exists("holdTime")) holdTime = Std.parseFloat(xml.x.get("holdTime")).getDefaultFloat(4); if (xml.x.exists("flipX")) flipX = (xml.x.get("flipX") == "true"); if (xml.x.exists("icon")) icon = xml.x.get("icon"); if (xml.x.exists("color")) iconColor = FlxColor.fromString(xml.x.get("color"));