11package com .lambda .mixin .entity ;
22
3- import com .lambda .EntityLivingBaseFireworkHelper ;
3+ import com .lambda .client . module . modules . misc . ElytraFix ;
44import com .lambda .client .module .modules .movement .ElytraFlight ;
55import net .minecraft .entity .Entity ;
66import net .minecraft .entity .EntityLivingBase ;
@@ -31,7 +31,7 @@ public MixinEntityLivingBase(World worldIn) {
3131 at = @ At (value = "INVOKE_ASSIGN" , target = "Lnet/minecraft/entity/EntityLivingBase;getLookVec()Lnet/minecraft/util/math/Vec3d;" , ordinal = 0 )
3232 )
3333 private Vec3d vec3d (Vec3d original ) {
34- if (EntityLivingBaseFireworkHelper .shouldWork (EntityLivingBase .class .cast (this ))) {
34+ if (ElytraFix . INSTANCE .shouldWork (EntityLivingBase .class .cast (this ))) {
3535 float negPacketPitch = -ElytraFlight .INSTANCE .getPacketPitch ();
3636 float f0 = MathHelper .cos ((float ) (-this .rotationYaw * 0.017453292f - Math .PI ));
3737 float f1 = MathHelper .sin ((float ) (-this .rotationYaw * 0.017453292f - Math .PI ));
@@ -49,7 +49,7 @@ private Vec3d vec3d(Vec3d original) {
4949 ordinal = 3
5050 )
5151 private float f (float original ) {
52- if (EntityLivingBaseFireworkHelper .shouldWork (EntityLivingBase .class .cast (this ))) {
52+ if (ElytraFix . INSTANCE .shouldWork (EntityLivingBase .class .cast (this ))) {
5353 return ElytraFlight .INSTANCE .getPacketPitch () * 0.017453292f ;
5454 }
5555 return original ;
@@ -76,7 +76,7 @@ private void getVec(
7676 at = @ At (value = "FIELD" , opcode = Opcodes .GETFIELD , target = "Lnet/minecraft/entity/EntityLivingBase;motionX:D" , ordinal = 7 )
7777 )
7878 public double motionX (EntityLivingBase it ) {
79- if (EntityLivingBaseFireworkHelper .shouldModify (EntityLivingBase .class .cast (this ))) {
79+ if (ElytraFix . INSTANCE .shouldModify (EntityLivingBase .class .cast (this ))) {
8080 it .motionX += modifiedVec .x * 0.1 + (modifiedVec .x * 1.5 - this .motionX ) * 0.5 ;
8181 }
8282 return it .motionX ;
@@ -87,7 +87,7 @@ public double motionX(EntityLivingBase it) {
8787 at = @ At (value = "FIELD" , opcode = Opcodes .GETFIELD , target = "Lnet/minecraft/entity/EntityLivingBase;motionY:D" , ordinal = 7 )
8888 )
8989 public double motionY (EntityLivingBase it ) {
90- if (EntityLivingBaseFireworkHelper .shouldModify (EntityLivingBase .class .cast (this ))) {
90+ if (ElytraFix . INSTANCE .shouldModify (EntityLivingBase .class .cast (this ))) {
9191 it .motionY += modifiedVec .y * 0.1 + (modifiedVec .y * 1.5 - this .motionY ) * 0.5 ;
9292 }
9393 return it .motionY ;
@@ -98,7 +98,7 @@ public double motionY(EntityLivingBase it) {
9898 at = @ At (value = "FIELD" , opcode = Opcodes .GETFIELD , target = "Lnet/minecraft/entity/EntityLivingBase;motionZ:D" , ordinal = 7 )
9999 )
100100 public double motionZ (EntityLivingBase it ) {
101- if (EntityLivingBaseFireworkHelper .shouldModify (EntityLivingBase .class .cast (this ))) {
101+ if (ElytraFix . INSTANCE .shouldModify (EntityLivingBase .class .cast (this ))) {
102102 it .motionZ += modifiedVec .z * 0.1 + (modifiedVec .z * 1.5 - this .motionZ ) * 0.5 ;
103103 }
104104 return it .motionZ ;
0 commit comments