Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 21:10:17 +01:00
Don't Special Case X Move Value
Dieser Commit ist enthalten in:
Ursprung
f79333c2dc
Commit
f3d31bfdff
22
CraftBukkit-Patches/0074-Don-t-Special-Case-X-Move-Value.patch
Normale Datei
22
CraftBukkit-Patches/0074-Don-t-Special-Case-X-Move-Value.patch
Normale Datei
@ -0,0 +1,22 @@
|
|||||||
|
From 89f9c8f06dbe1b36214500b30a2db3b5383f03c5 Mon Sep 17 00:00:00 2001
|
||||||
|
From: md_5 <md_5@live.com.au>
|
||||||
|
Date: Sun, 6 Oct 2013 17:36:28 +1100
|
||||||
|
Subject: [PATCH] Don't Special Case X Move Value
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||||
|
index 10d853b..4117942 100644
|
||||||
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||||
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||||
|
@@ -222,7 +222,7 @@ public class PlayerConnection extends Connection {
|
||||||
|
this.lastPitch = to.getPitch();
|
||||||
|
|
||||||
|
// Skip the first time we do this
|
||||||
|
- if (from.getX() != Double.MAX_VALUE) {
|
||||||
|
+ if (true) { // Spigot - no special cases!
|
||||||
|
PlayerMoveEvent event = new PlayerMoveEvent(player, from, to);
|
||||||
|
this.server.getPluginManager().callEvent(event);
|
||||||
|
|
||||||
|
--
|
||||||
|
1.8.1.2
|
||||||
|
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren