You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
724 B
12 lines
724 B
--- ../src-base/minecraft/net/minecraft/entity/ai/EntityMoveHelper.java |
|
+++ ../src-work/minecraft/net/minecraft/entity/ai/EntityMoveHelper.java |
|
@@ -56,7 +56,8 @@ |
|
|
|
if (d3 >= 2.500000277905201E-7D) |
|
{ |
|
- float f = (float)(Math.atan2(d1, d0) * 180.0D / Math.PI) - 90.0F; |
|
+ // CraftBukkit - Math -> TrigMath |
|
+ float f = (float)(org.bukkit.craftbukkit.TrigMath.atan2(d1, d0) * 180.0D / Math.PI) - 90.0F; |
|
this.entity.rotationYaw = this.limitAngle(this.entity.rotationYaw, f, 30.0F); |
|
this.entity.setAIMoveSpeed((float)(this.speed * this.entity.getEntityAttribute(SharedMonsterAttributes.movementSpeed).getAttributeValue())); |
|
|
|
|