diff options
author | Zach Brown <[email protected]> | 2016-10-22 15:36:19 -0500 |
---|---|---|
committer | Zach Brown <[email protected]> | 2016-10-22 15:36:19 -0500 |
commit | 557c26bec44d8eb2ae3fe8b2a19dc1e6366e5afa (patch) | |
tree | 1053f51dbdd5c62059c9276457b85805dfc7172e | |
parent | 7be0340f4865b76ecf7c4cb30a3cb17476a90e5b (diff) | |
download | Paper-557c26bec44d8eb2ae3fe8b2a19dc1e6366e5afa.tar.gz Paper-557c26bec44d8eb2ae3fe8b2a19dc1e6366e5afa.zip |
Revert CB's SPIGOT-1903 fix in favor of ours
Fixes GH-453
-rw-r--r-- | Spigot-Server-Patches/0178-SPIGOT-1903-Use-alternate-fix.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0178-SPIGOT-1903-Use-alternate-fix.patch b/Spigot-Server-Patches/0178-SPIGOT-1903-Use-alternate-fix.patch new file mode 100644 index 0000000000..9d37692163 --- /dev/null +++ b/Spigot-Server-Patches/0178-SPIGOT-1903-Use-alternate-fix.patch @@ -0,0 +1,52 @@ +From 3f994a958bdda226403b9927b3f363e3373f8405 Mon Sep 17 00:00:00 2001 +From: Aikar <[email protected]> +Date: Sat, 22 Oct 2016 15:32:31 -0500 +Subject: [PATCH] SPIGOT-1903: Use alternate fix + +Prevents rubber banding and moved too quickly issues + +Removes Spigot's fix in favor of the one previously in Paper +See GH-453 for rationale + +diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java +index 4039317..4446719 100644 +--- a/src/main/java/net/minecraft/server/Entity.java ++++ b/src/main/java/net/minecraft/server/Entity.java +@@ -307,6 +307,7 @@ public abstract class Entity implements ICommandListener { + this.locX = d0; + this.locY = d1; + this.locZ = d2; ++ if (this instanceof EntityPlayer && ((EntityPlayer) this).playerConnection != null) ((EntityPlayer) this).playerConnection.captureCurrentPosition(); // Paper + float f = this.width / 2.0F; + float f1 = this.length; + +diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java +index 59f7020..870a4b5 100644 +--- a/src/main/java/net/minecraft/server/PlayerConnection.java ++++ b/src/main/java/net/minecraft/server/PlayerConnection.java +@@ -135,9 +135,12 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable { + // CraftBukkit end + + public void E_() { ++ // Paper start - Unreverse the order of location update, GH-453 ++ this.d(); + // CraftBukkit start - SPIGOT-1903: reverse order of location update + this.player.k_(); +- this.d(); ++ //this.d(); ++ // Paper end + // CraftBukkit end + this.player.setLocation(this.l, this.m, this.n, this.player.yaw, this.player.pitch); + ++this.e; +@@ -206,7 +209,7 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable { + + } + +- private void d() { ++ public void captureCurrentPosition() { d(); } private void d() { // Paper - OBFHELPER + this.l = this.player.locX; + this.m = this.player.locY; + this.n = this.player.locZ; +-- +2.9.3 + |