Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

Commit 991c7f7

Browse files
committed
Update to 1.21.5
1 parent 8930fcd commit 991c7f7

File tree

7 files changed

+27
-29
lines changed

7 files changed

+27
-29
lines changed

build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'fabric-loom' version '1.10-SNAPSHOT'
2+
id 'fabric-loom' version "${loom_version}"
33
id 'maven-publish'
44
id "com.diffplug.spotless" version "7.0.2"
55
}
@@ -37,11 +37,13 @@ dependencies {
3737
// Fabric API - Needs to be specified, otherwise an older version might be defaulted and cause issues.
3838
modImplementation("net.fabricmc.fabric-api:fabric-api:${project.fabric_version}")
3939

40-
// YACL - TO BE REPLACED WITH LIGHTCONFIG
41-
modImplementation("dev.isxander:yet-another-config-lib:${project.yacl_version}")
42-
4340
// Animatium
44-
modImplementation(files("./jars/animatium-${project.animatium_version}-${project.animatium_commit}.jar"))
41+
modImplementation(files("./jars/animatium-${project.animatium_ext}.jar"))
42+
43+
// YACL - TO BE REPLACED WITH LIGHTCONFIG
44+
modImplementation("dev.isxander:yet-another-config-lib:${project.yacl_version}") {
45+
exclude group: 'net.fabricmc.fabric-api'
46+
}
4547

4648
// Mod Menu
4749
modImplementation("com.terraformersmc:modmenu:${project.modmenu_version}") {

gradle.properties

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ org.gradle.parallel=true
44

55
# Fabric Properties
66
# check these on https://fabricmc.net/develop
7-
minecraft_version=1.21.4
8-
loader_version=0.16.10
7+
minecraft_version=1.21.5
8+
loader_version=0.16.14
9+
loom_version=1.10-SNAPSHOT
910

1011
# Dependencies
11-
fabric_version=0.119.0+1.21.4
12-
yacl_version=3.6.2+1.21.4-fabric
13-
modmenu_version=13.0.1
14-
animatium_version=2.0
15-
animatium_commit=458a0c5
12+
fabric_version=0.123.2+1.21.5
13+
yacl_version=3.6.6+1.21.5-fabric
14+
modmenu_version=14.0.0-rc.2
15+
animatium_ext=2.3+mc1.21.5
1616

1717
# Mod Properties
1818
mod_version=1.0

src/main/java/btw/lowercase/animatium_extras/mixins/animatium/command/MixinAnimatiumCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232

3333
@Mixin(AnimatiumCommand.class)
3434
public abstract class MixinAnimatiumCommand {
35-
@Inject(method = "lambda$register$2", at = @At(value = "INVOKE", target = "Lnet/fabricmc/fabric/api/client/command/v2/FabricClientCommandSource;sendFeedback(Lnet/minecraft/network/chat/Component;)V", shift = At.Shift.AFTER))
35+
@Inject(method = "lambda$create$2", at = @At(value = "INVOKE", target = "Lnet/fabricmc/fabric/api/client/command/v2/FabricClientCommandSource;sendFeedback(Lnet/minecraft/network/chat/Component;)V", ordinal = 1, shift = At.Shift.AFTER))
3636
private static void animatium_extras$reloadOverlayTexture$onCommand(CommandContext<?> context, CallbackInfoReturnable<Integer> cir) {
3737
AnimatiumExtrasClient.SHOULD_RELOAD_OVERLAY_TEXTURE = true;
3838
}
3939

40-
@Inject(method = "lambda$register$3", at = @At(value = "INVOKE", target = "Lnet/fabricmc/fabric/api/client/command/v2/FabricClientCommandSource;sendFeedback(Lnet/minecraft/network/chat/Component;)V", shift = At.Shift.AFTER))
40+
@Inject(method = "lambda$create$3", at = @At(value = "INVOKE", target = "Lnet/fabricmc/fabric/api/client/command/v2/FabricClientCommandSource;sendFeedback(Lnet/minecraft/network/chat/Component;)V", ordinal = 1, shift = At.Shift.AFTER))
4141
private static void animatium_extras$reloadOverlayTexture$offCommand(CommandContext<?> context, CallbackInfoReturnable<Integer> cir) {
4242
AnimatiumExtrasClient.SHOULD_RELOAD_OVERLAY_TEXTURE = true;
4343
}

src/main/java/btw/lowercase/animatium_extras/mixins/level/entity/MixinPlayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
@Mixin(Player.class)
3333
public abstract class MixinPlayer {
34-
@ModifyExpressionValue(method = "attack", at = @At(value = "CONSTANT", args = "floatValue=0.0", ordinal = 6))
34+
@ModifyExpressionValue(method = "attack", at = @At(value = "CONSTANT", args = "floatValue=0.0", ordinal = 5))
3535
private float animatium_extras$alwaysShowSharpParticles(float original) {
3636
if (AnimatiumClient.isEnabled() && AnimatiumExtrasConfig.instance().alwaysSharpParticles) {
3737
return -1.0F;

src/main/java/btw/lowercase/animatium_extras/mixins/screen/components/toasts/MixinToastManagerToastInstance.java renamed to src/main/java/btw/lowercase/animatium_extras/mixins/screen/components/toasts/MixinToastManager.java

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,20 @@
2626
import btw.lowercase.animatium_extras.config.AnimatiumExtrasConfig;
2727
import btw.mixces.animatium.AnimatiumClient;
2828
import com.llamalad7.mixinextras.injector.v2.WrapWithCondition;
29+
import com.llamalad7.mixinextras.sugar.Local;
2930
import net.minecraft.client.gui.components.toasts.RecipeToast;
3031
import net.minecraft.client.gui.components.toasts.Toast;
3132
import net.minecraft.client.gui.components.toasts.ToastManager;
3233
import net.minecraft.client.gui.components.toasts.TutorialToast;
3334
import net.minecraft.client.sounds.SoundManager;
34-
import org.spongepowered.asm.mixin.Final;
3535
import org.spongepowered.asm.mixin.Mixin;
36-
import org.spongepowered.asm.mixin.Shadow;
3736
import org.spongepowered.asm.mixin.injection.At;
3837

39-
@Mixin(ToastManager.ToastInstance.class)
40-
public abstract class MixinToastManagerToastInstance<T extends Toast> {
41-
@Shadow
42-
@Final
43-
private T toast;
44-
45-
@WrapWithCondition(method = "update", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/components/toasts/Toast$Visibility;playSound(Lnet/minecraft/client/sounds/SoundManager;)V"))
46-
private boolean animatium_extras$recipeAndTutorialToasts(Toast.Visibility instance, SoundManager soundManager) {
47-
return !AnimatiumClient.isEnabled() || !AnimatiumExtrasConfig.instance().recipeAndTutorialToasts || (!(this.toast instanceof RecipeToast) && !(this.toast instanceof TutorialToast));
38+
@Mixin(ToastManager.class)
39+
public abstract class MixinToastManager {
40+
@WrapWithCondition(method = "method_61991", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/components/toasts/Toast$Visibility;playSound(Lnet/minecraft/client/sounds/SoundManager;)V"))
41+
private boolean animatium_extras$recipeAndTutorialToasts(Toast.Visibility instance, SoundManager soundManager, @Local(argsOnly = true) ToastManager.ToastInstance<?> toastInstance) {
42+
final Toast toast = toastInstance.getToast();
43+
return !AnimatiumClient.isEnabled() || !AnimatiumExtrasConfig.instance().recipeAndTutorialToasts || (!(toast instanceof RecipeToast) && !(toast instanceof TutorialToast));
4844
}
4945
}

src/main/resources/animatium_extras.mixins.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"screen.components.MixinChatComponent",
1717
"screen.components.MixinDebugScreenOverlay",
1818
"screen.components.toasts.MixinRecipeToast",
19-
"screen.components.toasts.MixinToastManagerToastInstance",
19+
"screen.components.toasts.MixinToastManager",
2020
"screen.components.toasts.MixinTutorialToast",
2121
"animatium.command.MixinAnimatiumCommand",
2222
"animatium.util.MixinPlayerUtils",

src/main/resources/fabric.mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
],
4141
"depends": {
4242
"fabricloader": ">=0.16.7",
43-
"minecraft": ">=1.21.4 <1.21.5",
44-
"yet_another_config_lib_v3": ">=3.6.2",
43+
"minecraft": ">=1.21.5 <1.21.6",
44+
"yet_another_config_lib_v3": ">=3.6.4",
4545
"animatium": "*",
4646
"fabric-api": "*"
4747
},

0 commit comments

Comments
 (0)