diff --git a/gradle.properties b/gradle.properties index ff12de5..10df641 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,6 +3,6 @@ org.gradle.jvmargs=-Xmx1G # Your project's version group=gay.ampflower -projectVersion=0.4.3 +projectVersion=0.4.4 modrinthId=z23qey0b -minecraftCompatible=1.20.2 +minecraftCompatible=1.20.3 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index d073a64..6d96df0 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,13 +3,13 @@ annotations = "23.0.0" # https://github.com/LambdAurora/SpruceUI spruceui = "5.0.3+1.20.2" -modmenu = "8.0.+" +modmenu = "9.0.0-pre.1" # Minecraft -minecraft_version = "1.20.2" -minecraft_required = "1.20.2" +minecraft_version = "1.20.3" +minecraft_required = "1.20.3" fabric_loader = "0.15.+" -fabric_api = "0.89.1+1.20.2" +fabric_api = "0.91.1+1.20.3" # Plugins loom = "1.+" diff --git a/src/main/java/gay/ampflower/musicmoods/client/MusicSoundInstance.java b/src/main/java/gay/ampflower/musicmoods/client/MusicSoundInstance.java index c1fcc83..82dc22b 100644 --- a/src/main/java/gay/ampflower/musicmoods/client/MusicSoundInstance.java +++ b/src/main/java/gay/ampflower/musicmoods/client/MusicSoundInstance.java @@ -6,6 +6,7 @@ package gay.ampflower.musicmoods.client;// Created 2023-09-01T02:55:14 +import it.unimi.dsi.fastutil.floats.FloatUnaryOperator; import net.minecraft.client.Timer; import net.minecraft.client.resources.sounds.AbstractTickableSoundInstance; import net.minecraft.client.resources.sounds.SoundInstance; @@ -24,7 +25,7 @@ public class MusicSoundInstance extends AbstractTickableSoundInstance { */ private static final float JUMP_LIMIT = 0.025F; - private final Timer timer = new Timer(20F, System.currentTimeMillis()); + private final Timer timer = new Timer(20F, System.currentTimeMillis(), FloatUnaryOperator.identity()); private float fadeOut; private float fadeIn;