aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches/0121-SPIGOT-1903-Update-PlayerConnection-on-teleporting-p.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Spigot-Server-Patches/0121-SPIGOT-1903-Update-PlayerConnection-on-teleporting-p.patch')
-rw-r--r--Spigot-Server-Patches/0121-SPIGOT-1903-Update-PlayerConnection-on-teleporting-p.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/Spigot-Server-Patches/0121-SPIGOT-1903-Update-PlayerConnection-on-teleporting-p.patch b/Spigot-Server-Patches/0121-SPIGOT-1903-Update-PlayerConnection-on-teleporting-p.patch
deleted file mode 100644
index 9b983c662b..0000000000
--- a/Spigot-Server-Patches/0121-SPIGOT-1903-Update-PlayerConnection-on-teleporting-p.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 31df39236b070e5486809b7eca2b6706c43814ff Mon Sep 17 00:00:00 2001
-From: Aikar <[email protected]>
-Date: Sun, 10 Apr 2016 22:36:10 -0400
-Subject: [PATCH] SPIGOT-1903: Update PlayerConnection on teleporting players
-
-Otherwise the player will trigger a "moved too quickly" next movement packet
-and rubber band.
-
-diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
-index 966f9fd..5f134d0 100644
---- a/src/main/java/net/minecraft/server/Entity.java
-+++ b/src/main/java/net/minecraft/server/Entity.java
-@@ -293,6 +293,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 eb4af2e..643a8e7 100644
---- a/src/main/java/net/minecraft/server/PlayerConnection.java
-+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
-@@ -206,7 +206,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
-