summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authorThinkofdeath <thinkofdeath@spigotmc.org>2014-12-07 11:26:58 +0000
committerThinkofdeath <thinkofdeath@spigotmc.org>2014-12-07 11:26:58 +0000
commit7bb3034c786a068a4c59e56a1b7e1af4ad2b2122 (patch)
treea1c335078af8e1943ad3647ce8a762849e78ea75 /nms-patches
parentd417466842176ee42c2d7c26acc059b154917a1d (diff)
downloadcraftbukkit-7bb3034c786a068a4c59e56a1b7e1af4ad2b2122.tar
craftbukkit-7bb3034c786a068a4c59e56a1b7e1af4ad2b2122.tar.gz
craftbukkit-7bb3034c786a068a4c59e56a1b7e1af4ad2b2122.tar.lz
craftbukkit-7bb3034c786a068a4c59e56a1b7e1af4ad2b2122.tar.xz
craftbukkit-7bb3034c786a068a4c59e56a1b7e1af4ad2b2122.zip
Clone the vector that is passed to the VelocityEvent
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/EntityHuman.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/EntityHuman.patch b/nms-patches/EntityHuman.patch
index 360e4776..935dc5c0 100644
--- a/nms-patches/EntityHuman.patch
+++ b/nms-patches/EntityHuman.patch
@@ -1,5 +1,5 @@
---- ../work/decompile-8eb82bde//net/minecraft/server/EntityHuman.java Sat Dec 6 21:26:20 2014
-+++ src/main/java/net/minecraft/server/EntityHuman.java Sat Dec 6 21:26:07 2014
+--- ../work/decompile-8eb82bde//net/minecraft/server/EntityHuman.java 2014-12-07 11:26:13.489010423 +0000
++++ src/main/java/net/minecraft/server/EntityHuman.java 2014-12-07 11:25:50.801010669 +0000
@@ -8,13 +8,27 @@
import java.util.List;
import java.util.UUID;
@@ -306,7 +306,7 @@
+ Player player = (Player) entity.getBukkitEntity();
+ org.bukkit.util.Vector velocity = new Vector( d0, d1, d2 );
+
-+ PlayerVelocityEvent event = new PlayerVelocityEvent(player, velocity);
++ PlayerVelocityEvent event = new PlayerVelocityEvent(player, velocity.clone());
+ world.getServer().getPluginManager().callEvent(event);
+
+ if (event.isCancelled()) {