This commit is contained in:
Brady
2018-11-05 16:05:25 -06:00
parent f286c400a3
commit 0373f1875f
4 changed files with 16 additions and 13 deletions

View File

@@ -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;
}
}

View File

@@ -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;
}
}