diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-02-26 22:41:06 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-03-04 09:48:58 +0000 |
commit | d8a9c7be4227b2243968b63ab7cc7a00098c93ad (patch) | |
tree | 554a08a5f23ffa5dd66a28247d6358515b1ffb7a /nms-patches/ControllerLook.patch | |
parent | 33d5de312e9fcc8aec3fc53136658cb6920562aa (diff) | |
download | craftbukkit-d8a9c7be4227b2243968b63ab7cc7a00098c93ad.tar craftbukkit-d8a9c7be4227b2243968b63ab7cc7a00098c93ad.tar.gz craftbukkit-d8a9c7be4227b2243968b63ab7cc7a00098c93ad.tar.lz craftbukkit-d8a9c7be4227b2243968b63ab7cc7a00098c93ad.tar.xz craftbukkit-d8a9c7be4227b2243968b63ab7cc7a00098c93ad.zip |
Update to Minecraft 1.8.3
Diffstat (limited to 'nms-patches/ControllerLook.patch')
-rw-r--r-- | nms-patches/ControllerLook.patch | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/nms-patches/ControllerLook.patch b/nms-patches/ControllerLook.patch deleted file mode 100644 index cc6a3806..00000000 --- a/nms-patches/ControllerLook.patch +++ /dev/null @@ -1,23 +0,0 @@ ---- ../work/decompile-8eb82bde//net/minecraft/server/ControllerLook.java 2014-11-28 17:43:43.025707437 +0000 -+++ src/main/java/net/minecraft/server/ControllerLook.java 2014-11-28 17:38:21.000000000 +0000 -@@ -1,5 +1,7 @@ - package net.minecraft.server; - -+import org.bukkit.craftbukkit.TrigMath; // CraftBukkit -+ - public class ControllerLook { - - private EntityInsentient a; -@@ -45,8 +47,10 @@ - double d1 = this.f - (this.a.locY + (double) this.a.getHeadHeight()); - double d2 = this.g - this.a.locZ; - double d3 = (double) MathHelper.sqrt(d0 * d0 + d2 * d2); -- float f = (float) (Math.atan2(d2, d0) * 180.0D / 3.1415927410125732D) - 90.0F; -- float f1 = (float) (-(Math.atan2(d1, d3) * 180.0D / 3.1415927410125732D)); -+ // CraftBukkit start - Math -> TrigMath -+ float f = (float) (TrigMath.atan2(d2, d0) * 180.0D / 3.1415927410125732D) - 90.0F; -+ float f1 = (float) (-(TrigMath.atan2(d1, d3) * 180.0D / 3.1415927410125732D)); -+ // CraftBukkit end - - this.a.pitch = this.a(this.a.pitch, f1, this.c); - this.a.aI = this.a(this.a.aI, f, this.b); |