version 0.1.1.3
This commit is contained in:
parent
d35042780e
commit
30a3c9f1f5
|
|
@ -12,7 +12,7 @@ mapping_version=2023.09.03-1.20.1
|
||||||
mod_id=sccore
|
mod_id=sccore
|
||||||
mod_name=SnowyCrescentCore
|
mod_name=SnowyCrescentCore
|
||||||
mod_license=GNU AGPL 3.0
|
mod_license=GNU AGPL 3.0
|
||||||
mod_version=1.20.1-0.1.1.2
|
mod_version=1.20.1-0.1.1.3
|
||||||
mod_group_id=com.linearpast
|
mod_group_id=com.linearpast
|
||||||
mod_authors=LostInLinearPast
|
mod_authors=LostInLinearPast
|
||||||
mod_description=A lib about capability and player animator.
|
mod_description=A lib about capability and player animator.
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,6 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||||
|
|
||||||
@Mixin(Entity.class)
|
@Mixin(Entity.class)
|
||||||
public abstract class MixinEntity {
|
public abstract class MixinEntity {
|
||||||
@Shadow public abstract float getEyeHeight(Pose pPose);
|
|
||||||
|
|
||||||
@Shadow private AABB bb;
|
@Shadow private AABB bb;
|
||||||
|
|
||||||
@Shadow public abstract void setPose(Pose pPose);
|
@Shadow public abstract void setPose(Pose pPose);
|
||||||
|
|
@ -42,7 +40,7 @@ public abstract class MixinEntity {
|
||||||
camYModifier = Math.min(camYModifier, animationCamY);
|
camYModifier = Math.min(camYModifier, animationCamY);
|
||||||
}
|
}
|
||||||
if(camYModifier != null){
|
if(camYModifier != null){
|
||||||
return this.getEyeHeight(Pose.STANDING) + camYModifier;
|
return player.getEyeHeight(Pose.STANDING) + camYModifier;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return original;
|
return original;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user