Meme
This commit is contained in:
@@ -64,10 +64,10 @@ public class MixinEntity {
|
||||
target = "net/minecraft/entity/Entity.rotationYaw:F"
|
||||
)
|
||||
)
|
||||
private float overrideYaw(Entity entity) {
|
||||
if (entity instanceof EntityPlayerSP) {
|
||||
private float overrideYaw(Entity self) {
|
||||
if (self instanceof EntityPlayerSP) {
|
||||
return this.motionUpdateRotationEvent.getYaw();
|
||||
}
|
||||
return entity.rotationYaw;
|
||||
return self.rotationYaw;
|
||||
}
|
||||
}
|
||||
|
@@ -68,10 +68,10 @@ public abstract class MixinEntityLivingBase extends Entity {
|
||||
target = "net/minecraft/entity/EntityLivingBase.rotationYaw:F"
|
||||
)
|
||||
)
|
||||
private float overrideYaw(EntityLivingBase entity) {
|
||||
if (entity instanceof EntityPlayerSP) {
|
||||
private float overrideYaw(EntityLivingBase self) {
|
||||
if (self instanceof EntityPlayerSP) {
|
||||
return this.jumpRotationEvent.getYaw();
|
||||
}
|
||||
return entity.rotationYaw;
|
||||
return self.rotationYaw;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user