summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityLiving.java
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-02-21 21:27:01 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-02-21 21:27:01 +0000
commit67cf646014fa6336c7df4abefe85a2dec447d699 (patch)
tree7bbc19980b6a7a642c49d4cc108fcd7e39fd9e33 /src/main/java/net/minecraft/server/EntityLiving.java
parenta59149c2083f6b2ded3d5d23aa7d78f5201a5c0a (diff)
parent30d1a5d3fd4f5a6d682646f4ee2e790433884c6a (diff)
downloadcraftbukkit-67cf646014fa6336c7df4abefe85a2dec447d699.tar
craftbukkit-67cf646014fa6336c7df4abefe85a2dec447d699.tar.gz
craftbukkit-67cf646014fa6336c7df4abefe85a2dec447d699.tar.lz
craftbukkit-67cf646014fa6336c7df4abefe85a2dec447d699.tar.xz
craftbukkit-67cf646014fa6336c7df4abefe85a2dec447d699.zip
Merge branch 'master' of github.com:Bukkit/CraftBukkit
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityLiving.java')
-rw-r--r--src/main/java/net/minecraft/server/EntityLiving.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java
index 366f8f1e..c2c371db 100644
--- a/src/main/java/net/minecraft/server/EntityLiving.java
+++ b/src/main/java/net/minecraft/server/EntityLiving.java
@@ -10,6 +10,7 @@ import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.craftbukkit.CraftWorld;
import org.bukkit.craftbukkit.entity.CraftEntity;
import org.bukkit.craftbukkit.inventory.CraftItemStack;
+import org.bukkit.craftbukkit.TrigMath;
import org.bukkit.event.Event.Type;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
@@ -236,7 +237,7 @@ public abstract class EntityLiving extends Entity {
if (f > 0.05F) {
f3 = 1.0F;
f2 = f * 3.0F;
- f1 = (float) Math.atan2(d1, d0) * 180.0F / 3.1415927F - 90.0F;
+ f1 = (float) TrigMath.atan2(d1, d0) * 180.0F / 3.1415927F - 90.0F;
}
if (this.aY > 0.0F) {