mirror of
https://github.com/PaperMC/Paper.git
synced 2025-09-02 05:13:51 -07:00
Update to Minecraft 1.13
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
}
|
||||
+ // CraftBukkit end
|
||||
|
||||
public void X_() {
|
||||
public void Y_() {
|
||||
this.syncPosition();
|
||||
@@ -103,7 +176,7 @@
|
||||
this.minecraftServer.methodProfiler.a("keepAlive");
|
||||
@@ -389,8 +389,8 @@
|
||||
+ speed = player.abilities.walkSpeed * 10f;
|
||||
+ }
|
||||
+
|
||||
if (!this.player.H() && (!this.player.getWorldServer().getGameRules().getBoolean("disableElytraMovementCheck") || !this.player.db())) {
|
||||
float f2 = this.player.db() ? 300.0F : 100.0F;
|
||||
if (!this.player.H() && (!this.player.getWorldServer().getGameRules().getBoolean("disableElytraMovementCheck") || !this.player.dc())) {
|
||||
float f2 = this.player.dc() ? 300.0F : 100.0F;
|
||||
|
||||
- if (d11 - d10 > (double) (f2 * (float) i) && (!this.minecraftServer.J() || !this.minecraftServer.I().equals(this.player.getProfile().getName()))) {
|
||||
+ if (d11 - d10 > Math.max(f2, Math.pow((double) (10.0F * (float) i * speed), 2)) && (!this.minecraftServer.J() || !this.minecraftServer.I().equals(this.player.getProfile().getName()))) {
|
||||
@@ -467,7 +467,7 @@
|
||||
+
|
||||
this.B = d12 >= -0.03125D;
|
||||
this.B &= !this.minecraftServer.getAllowFlight() && !this.player.abilities.canFly;
|
||||
this.B &= !this.player.hasEffect(MobEffects.LEVITATION) && !this.player.db() && !worldserver.a(this.player.getBoundingBox().g(0.0625D).b(0.0D, -0.55D, 0.0D));
|
||||
this.B &= !this.player.hasEffect(MobEffects.LEVITATION) && !this.player.dc() && !worldserver.a(this.player.getBoundingBox().g(0.0625D).b(0.0D, -0.55D, 0.0D));
|
||||
@@ -662,10 +959,76 @@
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user