geforkt von Mirrors/Paper
SPIGOT-102: Fix the player being teleported up 1.62 blocks on cancelling the PlayerMoveEvent
By: Thinkofdeath <thinkofdeath@spigotmc.org>
Dieser Commit ist enthalten in:
Ursprung
1493ccc3e7
Commit
e5627edb48
@ -1,5 +1,5 @@
|
|||||||
--- ../work/decompile-8eb82bde//net/minecraft/server/PlayerConnection.java 2014-11-30 12:10:17.417157726 +0000
|
--- ../work/decompile-8eb82bde//net/minecraft/server/PlayerConnection.java 2014-12-02 20:39:19.177600755 +0000
|
||||||
+++ src/main/java/net/minecraft/server/PlayerConnection.java 2014-11-30 12:10:10.193157886 +0000
|
+++ src/main/java/net/minecraft/server/PlayerConnection.java 2014-12-02 20:38:47.001601469 +0000
|
||||||
@@ -16,6 +16,48 @@
|
@@ -16,6 +16,48 @@
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
@ -198,7 +198,7 @@
|
|||||||
+
|
+
|
||||||
+ // If the event is cancelled we move the player back to their old location.
|
+ // If the event is cancelled we move the player back to their old location.
|
||||||
+ if (event.isCancelled()) {
|
+ if (event.isCancelled()) {
|
||||||
+ this.player.playerConnection.sendPacket(new PacketPlayOutPosition(from.getX(), from.getY() + 1.6200000047683716D, from.getZ(), from.getYaw(), from.getPitch(), Collections.emptySet()));
|
+ this.player.playerConnection.sendPacket(new PacketPlayOutPosition(from.getX(), from.getY(), from.getZ(), from.getYaw(), from.getPitch(), Collections.emptySet()));
|
||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren