ForgePatch/patches/minecraft/net/minecraft/entity/FlyingEntity.java.patch

22 lines
1.2 KiB
Diff

--- a/net/minecraft/entity/FlyingEntity.java
+++ b/net/minecraft/entity/FlyingEntity.java
@@ -27,15 +27,16 @@
this.func_213315_a(MoverType.SELF, this.func_213322_ci());
this.func_213317_d(this.func_213322_ci().func_186678_a(0.5D));
} else {
+ BlockPos ground = new BlockPos(this.func_226277_ct_(), this.func_226278_cu_() - 1.0D, this.func_226281_cx_());
float f = 0.91F;
if (this.field_70122_E) {
- f = this.field_70170_p.func_180495_p(new BlockPos(this.func_226277_ct_(), this.func_226278_cu_() - 1.0D, this.func_226281_cx_())).func_177230_c().func_208618_m() * 0.91F;
+ f = this.field_70170_p.func_180495_p(ground).getSlipperiness(this.field_70170_p, ground, this) * 0.91F;
}
float f1 = 0.16277137F / (f * f * f);
f = 0.91F;
if (this.field_70122_E) {
- f = this.field_70170_p.func_180495_p(new BlockPos(this.func_226277_ct_(), this.func_226278_cu_() - 1.0D, this.func_226281_cx_())).func_177230_c().func_208618_m() * 0.91F;
+ f = this.field_70170_p.func_180495_p(ground).getSlipperiness(this.field_70170_p, ground, this) * 0.91F;
}
this.func_213309_a(this.field_70122_E ? 0.1F * f1 : 0.02F, p_213352_1_);