version 0.1.1.2 hotfix

This commit is contained in:
LostInLinearPast 2025-12-02 19:12:45 +08:00
parent 22e816f8a0
commit 89cd4ace1f
4 changed files with 11 additions and 13 deletions

View File

@ -235,6 +235,14 @@ publishing {
password = System.getenv('LTDNexusPassword') ?: '' password = System.getenv('LTDNexusPassword') ?: ''
} }
} }
maven {
name = 'MafuyuNexus'
url = 'https://maven.sighs.cc/repository/maven-releases/'
credentials {
username = System.getenv('MafuyuNexusUsername') ?: ''
password = System.getenv('MafuyuNexusPassword') ?: ''
}
}
} }
} }

View File

@ -1,10 +1,6 @@
package com.linearpast.sccore.animation.data; 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.minecraft.resources.ResourceLocation;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
import java.util.regex.Pattern; import java.util.regex.Pattern;
@ -130,12 +126,6 @@ public class GenericAnimationData extends AnimationData {
return camYaw; return camYaw;
} }
@Nullable
@OnlyIn(Dist.CLIENT)
public KeyframeAnimation getAnimation() {
return PlayerAnimationRegistry.getAnimation(key);
}
public @Nullable GenericAnimationData.LyingType getLyingType() { public @Nullable GenericAnimationData.LyingType getLyingType() {
return lyingType; return lyingType;
} }

View File

@ -290,7 +290,7 @@ public interface IAnimationService<D extends AnimationData, C extends ICapabilit
if(player instanceof FakePlayer) if(player instanceof FakePlayer)
return ApiBack.UNSUPPORTED; return ApiBack.UNSUPPORTED;
boolean flag = player.getVehicle() != null; boolean flag = player.getVehicle() != null;
if(flag && force) player.unRide(); if(flag && force) player.stopRiding();
else if(flag) return ApiBack.UNSUPPORTED; else if(flag) return ApiBack.UNSUPPORTED;
boolean result = AnimationRideEntity.create(player, layer, animation, force) != null; boolean result = AnimationRideEntity.create(player, layer, animation, force) != null;
return result ? ApiBack.SUCCESS : ApiBack.FAIL; return result ? ApiBack.SUCCESS : ApiBack.FAIL;

View File

@ -155,8 +155,8 @@ public class ModLang {
)), )),
ANIMATION_RESOURCE_NOT_FOUND(new LangEntity<>( ANIMATION_RESOURCE_NOT_FOUND(new LangEntity<>(
translationString + command + animation + ".animation_resource_not_found", translationString + command + animation + ".animation_resource_not_found",
"错误: 资源未找到,请检查资源或操作是否有误", "错误: 资源未找到,请检查资源或操作是否有误: %s",
"Error: Resource not found, please check if there are any errors in the resource or operation." "Error: Resource not found, please check if there are any errors in the resource or operation : %s"
)), )),
ANIMATION_OPERATION_CANCELLED(new LangEntity<>( ANIMATION_OPERATION_CANCELLED(new LangEntity<>(
translationString + command + animation + ".animation_operation_cancelled", translationString + command + animation + ".animation_operation_cancelled",