diff --git a/build.gradle b/build.gradle index f10fcc6..1916a64 100644 --- a/build.gradle +++ b/build.gradle @@ -235,6 +235,14 @@ publishing { password = System.getenv('LTDNexusPassword') ?: '' } } + maven { + name = 'MafuyuNexus' + url = 'https://maven.sighs.cc/repository/maven-releases/' + credentials { + username = System.getenv('MafuyuNexusUsername') ?: '' + password = System.getenv('MafuyuNexusPassword') ?: '' + } + } } } diff --git a/src/main/java/com/linearpast/sccore/animation/data/GenericAnimationData.java b/src/main/java/com/linearpast/sccore/animation/data/GenericAnimationData.java index 7025395..2f881fd 100644 --- a/src/main/java/com/linearpast/sccore/animation/data/GenericAnimationData.java +++ b/src/main/java/com/linearpast/sccore/animation/data/GenericAnimationData.java @@ -1,10 +1,6 @@ package com.linearpast.sccore.animation.data; -import dev.kosmx.playerAnim.core.data.KeyframeAnimation; -import dev.kosmx.playerAnim.minecraftApi.PlayerAnimationRegistry; import net.minecraft.resources.ResourceLocation; -import net.minecraftforge.api.distmarker.Dist; -import net.minecraftforge.api.distmarker.OnlyIn; import org.jetbrains.annotations.Nullable; import java.util.regex.Pattern; @@ -130,12 +126,6 @@ public class GenericAnimationData extends AnimationData { return camYaw; } - @Nullable - @OnlyIn(Dist.CLIENT) - public KeyframeAnimation getAnimation() { - return PlayerAnimationRegistry.getAnimation(key); - } - public @Nullable GenericAnimationData.LyingType getLyingType() { return lyingType; } diff --git a/src/main/java/com/linearpast/sccore/animation/service/IAnimationService.java b/src/main/java/com/linearpast/sccore/animation/service/IAnimationService.java index f98a823..4f390f2 100644 --- a/src/main/java/com/linearpast/sccore/animation/service/IAnimationService.java +++ b/src/main/java/com/linearpast/sccore/animation/service/IAnimationService.java @@ -290,7 +290,7 @@ public interface IAnimationService( translationString + command + animation + ".animation_resource_not_found", - "错误: 资源未找到,请检查资源或操作是否有误。", - "Error: Resource not found, please check if there are any errors in the resource or operation." + "错误: 资源未找到,请检查资源或操作是否有误: %s", + "Error: Resource not found, please check if there are any errors in the resource or operation : %s" )), ANIMATION_OPERATION_CANCELLED(new LangEntity<>( translationString + command + animation + ".animation_operation_cancelled",