summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-11-18 08:41:21 +1100
committermd_5 <git@md-5.net>2016-11-18 08:41:21 +1100
commit2dd38f2dc4a3da36dba19a1d41f89e6ef0a87847 (patch)
tree0313d2504d0e12549526ffb027ad477323599bd0 /nms-patches
parenta951a88398d88c4823aedde5e88beb352fa38b64 (diff)
downloadcraftbukkit-2dd38f2dc4a3da36dba19a1d41f89e6ef0a87847.tar
craftbukkit-2dd38f2dc4a3da36dba19a1d41f89e6ef0a87847.tar.gz
craftbukkit-2dd38f2dc4a3da36dba19a1d41f89e6ef0a87847.tar.lz
craftbukkit-2dd38f2dc4a3da36dba19a1d41f89e6ef0a87847.tar.xz
craftbukkit-2dd38f2dc4a3da36dba19a1d41f89e6ef0a87847.zip
SPIGOT-2785: Wrong effect ID for wither sounds
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/EntityWither.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/EntityWither.patch b/nms-patches/EntityWither.patch
index a1be6ae4..4b64b4d3 100644
--- a/nms-patches/EntityWither.patch
+++ b/nms-patches/EntityWither.patch
@@ -40,9 +40,9 @@
+ double deltaLength = Math.sqrt(distanceSquared);
+ double relativeX = player.locX + (deltaX / deltaLength) * viewDistance;
+ double relativeZ = player.locZ + (deltaZ / deltaLength) * viewDistance;
-+ player.playerConnection.sendPacket(new PacketPlayOutWorldEvent(1013, new BlockPosition((int) relativeX, (int) this.locY, (int) relativeZ), 0, true));
++ player.playerConnection.sendPacket(new PacketPlayOutWorldEvent(1023, new BlockPosition((int) relativeX, (int) this.locY, (int) relativeZ), 0, true));
+ } else {
-+ player.playerConnection.sendPacket(new PacketPlayOutWorldEvent(1013, new BlockPosition((int) this.locX, (int) this.locY, (int) this.locZ), 0, true));
++ player.playerConnection.sendPacket(new PacketPlayOutWorldEvent(1023, new BlockPosition((int) this.locX, (int) this.locY, (int) this.locZ), 0, true));
+ }
+ }
+ // CraftBukkit end